/* Weekly check of the lots (Check -> «Еженедельная проверка»): an optional module, see weekly.js. */
.wk-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 12px; }
.wk-offices { display: flex; flex-wrap: wrap; gap: 6px; }
.wk-office { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 99px; background: var(--surface); font: inherit; cursor: pointer; color: var(--text); }
.wk-office.active { background: #e8eeff; border-color: #9db5ff; color: var(--primary-dark); font-weight: 600; }
.wk-office-one { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; }
.wk-rules { margin-bottom: 12px; padding: 10px 14px; }
.wk-rules summary { cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.wk-rules-text { white-space: pre-line; margin: 10px 0 6px; line-height: 1.55; }
.wk-box { padding: 0; }
.wk-table th, .wk-table td { vertical-align: middle; }
.wk-table th.wk-th { text-align: center; white-space: normal; min-width: 64px; max-width: 96px; font-size: 11.5px; line-height: 1.25; cursor: help; }
.wk-week { min-width: 150px; }
.wk-week-name { white-space: nowrap; }
.wk-week-acts { display: flex; gap: 10px; margin-top: 2px; }
.wk-del { color: var(--danger); }
.wk-ok { color: #1f7a45; font-weight: 600; }
.wk-late { color: #c2410c; font-weight: 600; }
.wk-row.is-late { background: #fff3f0; }
.wk-row.wk-final { background: #fffbe0; }
.wk-row.is-done .wk-week-name b { color: #1f7a45; }
.wk-cell { text-align: center; padding: 4px; }
.wk-mark { width: 34px; height: 30px; border-radius: 8px; border: 1px dashed #c9cdd8; background: var(--surface); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; color: var(--muted); }
.wk-mark:hover { border-color: var(--primary); }
.wk-mark.st-ok { background: #e6f6ec; border: 1px solid #9fd8b4; color: #1f7a45; }
.wk-mark.st-no { background: #fdecec; border: 1px solid #f2b0b0; color: #c53030; }
.wk-mark.st-none { background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
.wk-by { min-width: 110px; line-height: 1.3; }
.wk-comment { min-width: 150px; width: 100%; }
.wk-menu { position: absolute; z-index: 300; display: flex; flex-direction: column; min-width: 190px; padding: 5px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg); }
.wk-menu-item { display: flex; align-items: center; gap: 10px; border: 0; background: none; font: inherit; text-align: left; padding: 8px 10px; border-radius: 7px; cursor: pointer; color: var(--text); }
.wk-menu-item:hover, .wk-menu-item:focus { background: var(--surface-2); outline: none; }
.wk-menu-item.active { font-weight: 700; }
.wk-menu-mark { width: 18px; text-align: center; font-weight: 700; }
.wk-menu-item.st-ok .wk-menu-mark { color: #1f7a45; }
.wk-menu-item.st-no .wk-menu-mark { color: #c53030; }
.wk-settings { margin-top: 16px; padding: 10px 14px; }
.wk-settings summary { cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 4px; }
.wk-items { display: flex; flex-direction: column; gap: 6px; }
.wk-item { display: grid; grid-template-columns: minmax(120px, 200px) 1fr auto auto auto; gap: 6px; align-items: center; }
/* the red dot: the weekly check is not marked yet (menu item «Проверка» and the tab) */
.wk-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #e5484d; margin-left: 7px; vertical-align: middle; box-shadow: 0 0 0 2px rgba(229, 72, 77, .18); flex: none; }
.sb-link .wk-dot { margin-left: 6px; }
@media (max-width: 760px) {
  .wk-item { grid-template-columns: 1fr auto auto auto; }
  .wk-item input:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
}
.wk-settings h2 { display: flex; align-items: center; gap: 8px; }
