/* ═══════════════════════════════════════════
   WORKLOAD PLANNER — readable, clear design
   ═══════════════════════════════════════════ */

:root {
  --c-primary:   #3a6db5;
  --c-primary-l: #ddeaff;
  --c-primary-d: #264f8e;

  --c-plan:      #3a6db5;
  --c-plan-bg:   #eaf0fd;
  --c-plan-mid:  #b8d0f8;

  --c-fact:      #1e7f68;
  --c-fact-bg:   #e6f7f2;
  --c-fact-mid:  #9edece;

  --c-bg:        #f2f4f9;
  --c-surface:   #ffffff;
  --c-surface-2: #f0f2f8;   /* заголовки таблиц */
  --c-surface-3: #f7f8fc;   /* строка сотрудника */
  --c-surface-4: #f5f6fb;   /* строка добавления */
  --c-border:    #d4d8e4;
  --c-text:      #1e2333;
  --c-text-2:    #4a5068;
  --c-text-3:    #8a92a8;

  --c-zero:  #eceef2;
  --c-low:   #fef0d6;
  --c-mid:   #fefad0;
  --c-full:  #dff4e4;
  --c-over:  #fde4e4;

  /* Shared level/fill tokens — used on both dashboard and competency */
  --c-lv0-bg: var(--c-zero);     --c-lv0-fg: #5a6075;
  --c-lv1-bg: var(--c-mid);      --c-lv1-fg: #5a4200;
  --c-lv2-bg: var(--c-plan-bg);  --c-lv2-fg: var(--c-primary-d);
  --c-lv3-bg: var(--c-full);     --c-lv3-fg: #0d5c2a;

  /* Legend dots */
  --c-dot-zero: #cdd0da;
  --c-dot-low:  #f5c07a;
  --c-dot-mid:  #f0e060;
  --c-dot-full: #6dce8a;
  --c-dot-over: #f08080;

  /* Danger (delete actions) */
  --c-danger:    #c0392b;
  --c-danger-bg: #fde8e8;

  --c-fcst:      #7c3aed;
  --c-fcst-bg:   #f5f0ff;
  --c-fcst-mid:  #c4b5fd;

  /* Hover variants for project rows */
  --c-plan-hover: #d4e4fc;
  --c-fact-hover: #c4ecdf;
  --c-fcst-hover: #ede9fe;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.09);
  --shadow-md: 0 2px 8px rgba(0,0,0,.11);
  --shadow-lg: 0 4px 18px rgba(0,0,0,.13);

  --r-sm:   7px;
  --r-md:   13px;
  --r-lg:   18px;
  --r-pill: 100px;

  --sticky-w: 300px;
  --cell-w:   90px;

  /* Typography scale */
  --fs-xs:   12px;
  --fs-sm:   13px;
  --fs-base: 14px;
  --fs-md:   15px;
  --fs-lg:   17px;
  --fs-xl:   20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.55;
  background: var(--c-bg);
  color: var(--c-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
input[type="number"] { -moz-appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button { opacity: .4; }

/* ── TAB BAR ─────────────────────────────── */
.tab-bar {
  position: sticky; top: 58px; z-index: 190;
  height: 44px;
  background: var(--c-surface);
  border-bottom: 1.5px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  display: flex; align-items: stretch;
  padding: 0 16px; gap: 0;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; -ms-overflow-style: none;
}
.tab-bar::-webkit-scrollbar { display: none; }

.tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 14px;
  color: var(--c-text-2); font-size: var(--fs-sm);
  text-decoration: none; white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color .15s, background .12s, border-color .15s;
  flex-shrink: 0;
}
.tab:hover { color: var(--c-primary); background: var(--c-primary-l); }
.tab-active {
  color: var(--c-primary);
  border-bottom-color: var(--c-primary);
  font-weight: 500;
}
.tab-icon { font-size: 17px !important; }
.tab-sep {
  width: 1px; background: var(--c-border);
  margin: 8px 6px; flex-shrink: 0;
}

/* ── STATUS BADGES ───────────────────────── */
.status-badge {
  display: inline-block; border-radius: 4px;
  padding: 1px 7px; font-size: 10px; font-weight: 500;
  white-space: nowrap; line-height: 1.6; flex-shrink: 0;
}
.sb-штатный   { background: var(--c-lv3-bg); color: var(--c-lv3-fg); }
.sb-частично  { background: var(--c-lv2-bg); color: var(--c-lv2-fg); }
.sb-внештата  { background: var(--c-lv1-bg); color: var(--c-lv1-fg); }
.sb-уволен    { background: var(--c-lv0-bg); color: var(--c-lv0-fg); }

/* ── APP BAR ─────────────────────────────── */
.app-bar {
  position: sticky; top: 0; z-index: 200;
  height: 58px;
  background: var(--c-primary);
  display: flex; align-items: center;
  padding: 0 22px; gap: 16px;
  box-shadow: var(--shadow-md);
}
.app-bar-brand {
  display: flex; align-items: center; gap: 9px;
  color: #fff; font-size: var(--fs-md);
  letter-spacing: -.2px; white-space: nowrap;
}
.app-bar-icon { font-size: 24px !important; opacity: .92; }

.app-bar-user { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.user-chip {
  display: flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.16); border-radius: var(--r-pill);
  padding: 6px 14px 6px 9px; color: #fff; font-size: var(--fs-sm);
}
.user-chip .material-icons-round { font-size: 18px; }
.user-chip-role {
  background: rgba(255,255,255,.22); border-radius: var(--r-pill);
  padding: 1px 9px; font-size: 11px;
}
.btn-tonal {
  display: flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.16); color: #fff; border: none;
  border-radius: var(--r-pill); padding: 8px 16px;
  font-size: var(--fs-sm); cursor: pointer; font-family: inherit;
  transition: background .15s; text-decoration: none;
}
.btn-tonal:hover { background: rgba(255,255,255,.28); }
.btn-logout .material-icons-round { font-size: 17px; }

/* ── APP BAR CENTER HINT ─────────────── */
.app-bar-center {
  flex: 1; display: flex; justify-content: center; align-items: center;
}
.app-bar-hint {
  display: flex; align-items: center; gap: 5px;
  color: rgba(255,255,255,.7); font-size: 12px;
}
.app-bar-hint strong { color: rgba(255,255,255,.95); }

/* ── PAGE WRAP ──────────────────────────── */
.main-content { padding: 0; }
.page-wrap { padding: 20px 24px 40px; }

/* ── TOP BAR ────────────────────────────── */
.page-topbar {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 14px; margin-bottom: 14px;
}
.page-title { display: flex; align-items: center; gap: 11px; flex: 1; min-width: 200px; }
.page-title-icon { font-size: 30px !important; color: var(--c-primary); }
.page-title-main { font-size: var(--fs-xl); color: var(--c-text); letter-spacing: -.3px; }
.page-title-sub  { font-size: var(--fs-sm); color: var(--c-text-2); margin-top: 1px; }

.topbar-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }

/* Date range */
.date-range-wrap {
  display: flex; align-items: center; gap: 6px;
  background: var(--c-surface); border: 1.5px solid var(--c-border);
  border-radius: var(--r-pill); padding: 6px 8px 6px 13px;
  box-shadow: var(--shadow-sm);
}
.dr-icon { font-size: 17px !important; color: var(--c-primary); }
.date-input {
  border: none; background: transparent; font-size: var(--fs-sm);
  font-family: inherit; color: var(--c-text); outline: none;
  width: 132px; cursor: pointer;
}
.dr-sep { color: var(--c-text-3); }
.btn-icon-sm {
  width: 28px; height: 28px; border-radius: 50%; border: none;
  background: var(--c-primary-l); color: var(--c-primary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s;
}
.btn-icon-sm:hover { background: var(--c-primary); color: #fff; }
.btn-icon-sm .material-icons-round { font-size: 16px; }
.btn-icon-warn { background: var(--c-danger-bg); color: var(--c-danger); }
.btn-icon-warn:hover { background: var(--c-danger); color: #fff; }

/* Navigation button (secondary, outline style) */
.btn-nav-top {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--c-surface); color: var(--c-text-2);
  border: 1.5px solid var(--c-border); border-radius: var(--r-pill);
  padding: 8px 18px; font-size: var(--fs-base);
  font-family: inherit; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: all .15s;
}
.btn-nav-top:hover { border-color: var(--c-primary); color: var(--c-primary); background: var(--c-primary-l); }
.btn-nav-top .material-icons-round { font-size: 17px; }

/* Inline delete button in project cell */
.btn-proj-del {
  margin-left: auto; flex-shrink: 0;
  background: none; border: none; cursor: pointer;
  width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: transparent; transition: background .15s, color .15s;
}
.proj-cell:hover .btn-proj-del { color: var(--c-text-3); }
.btn-proj-del:hover { background: var(--c-danger-bg) !important; color: var(--c-danger) !important; }
.btn-proj-del .material-icons-round { font-size: 15px; }

/* Separator between nav buttons and action buttons */
.topbar-sep {
  width: 1px; height: 28px; background: var(--c-border); flex-shrink: 0;
}

/* Save button */
.btn-save-top {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--c-plan); color: #fff;
  border: none; border-radius: var(--r-pill);
  padding: 9px 22px; font-size: var(--fs-base);
  font-family: inherit; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: opacity .15s;
}
.btn-save-top:hover { opacity: .88; }
.btn-save-top .material-icons-round { font-size: 17px; }
.btn-save-fact { background: var(--c-fact); }

/* save hint badge */
.save-hint {
  font-size: 10px; opacity: .65;
  background: rgba(255,255,255,.2);
  border-radius: 4px; padding: 1px 5px;
  margin-left: 2px;
}

/* ── LEGEND ─────────────────────────────── */
.legend-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  background: var(--c-surface); border: 1.5px solid var(--c-border);
  border-radius: var(--r-md); padding: 9px 18px; margin-bottom: 12px;
  font-size: var(--fs-sm); color: var(--c-text-2);
}
.legend-label { color: var(--c-text); font-size: var(--fs-sm); }
.legend-item  { display: flex; align-items: center; gap: 6px; }
.legend-dot   { width: 13px; height: 13px; border-radius: 3px; flex-shrink: 0; }
.ld-zero { background: var(--c-dot-zero); }
.ld-low  { background: var(--c-dot-low); }
.ld-mid  { background: var(--c-dot-mid); border: 1px solid #c8b800; }
.ld-full { background: var(--c-dot-full); }
.ld-over { background: var(--c-dot-over); }
.legend-sep { width: 1px; height: 16px; background: var(--c-border); }
.legend-stripe { display: inline-block; width: 26px; height: 11px; border-radius: 3px; flex-shrink: 0; }
.plan-stripe { background: var(--c-plan-bg); border: 1.5px solid var(--c-plan-mid); }
.fact-stripe { background: var(--c-fact-bg); border: 1.5px solid var(--c-fact-mid); }
.fcst-stripe { background: var(--c-fcst-bg); border: 1.5px solid var(--c-fcst-mid); }
.legend-icon { font-size: 14px !important; color: var(--c-text-3); }

/* ── TABLE OUTER ────────────────────────── */
.table-outer { position: relative; }
.scroll-arrow {
  position: fixed; top: 50vh; transform: translateY(-50%); z-index: 150;
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: var(--c-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow-md);
  opacity: .25; transition: opacity .18s;
}
.scroll-arrow:hover { opacity: 1 !important; }
.scroll-arrow .material-icons-round { font-size: 21px; }
.scroll-arrow-left  { left: 10px; }
.scroll-arrow-right { right: 10px; }

/* ── TABLE CARD ─────────────────────────── */
.table-card {
  background: var(--c-surface); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.table-card::-webkit-scrollbar { display: none; }
.table-scroll { overflow: visible; }

/* ── TABLE BASE ─────────────────────────── */
.wl-table {
  border-collapse: collapse; min-width: 100%;
  font-size: var(--fs-sm); table-layout: auto;
}

.wl-table thead { background: var(--c-surface-2); border-bottom: 2px solid var(--c-border); }
.th-month {
  padding: 11px 6px 7px; text-align: center;
  font-size: var(--fs-sm); color: var(--c-text-2);
  border-right: 1.5px solid var(--c-border);
  min-width: var(--cell-w); white-space: nowrap;
}
.th-week {
  padding: 4px 4px 11px; text-align: center;
  font-size: var(--fs-xs); color: var(--c-text-3);
  min-width: var(--cell-w); white-space: nowrap;
  border-right: 1px solid var(--c-border);
}
.th-name {
  padding: 11px 16px; text-align: left;
  font-size: var(--fs-sm); color: var(--c-text-2);
  background: var(--c-surface-2);
}
.th-del { min-width: 42px; background: var(--c-surface-2); }

/* Sticky col */
.sticky-col {
  position: sticky; left: 0; z-index: 10;
  min-width: var(--sticky-w); max-width: var(--sticky-w);
  background: var(--c-surface);
  box-shadow: 2px 0 6px rgba(0,0,0,.07);
}
thead .sticky-col { background: var(--c-surface-2) !important; z-index: 11; }

/* ── EMPLOYEE SUMMARY ROW ───────────────── */
.row-emp {
  cursor: pointer; border-top: 2px solid var(--c-border);
  background: var(--c-surface-3); transition: background .12s;
}
.row-emp:hover { background: var(--c-plan-bg); }
.row-emp:hover .sticky-col { background: var(--c-plan-bg); }
.row-emp .sticky-col { background: var(--c-surface-3); }

.td-emp {
  padding: 11px 16px;
  border-right: 1.5px solid var(--c-border);
}
.expand-ic { font-size: 20px !important; color: var(--c-text-3); flex-shrink: 0; }

.td-emp-week {
  padding: 8px 4px; text-align: center;
  border-right: 1px solid var(--c-border);
  font-size: var(--fs-sm); min-width: var(--cell-w);
}
.wh { font-size: 11px; opacity: .7; }
.sv-both { font-size: 10px; white-space: nowrap; line-height: 1.6; }
.plan-sv { display: block; }

/* Status text colours (employee name) */
.emp-status-partial   { color: var(--c-primary); }
.emp-status-external  { color: #d97706; }
.emp-status-dismissed { color: var(--c-text-3); text-decoration: line-through; }

/* Status colours for workload cells */
.cell-zero { background: var(--c-zero);  color: var(--c-lv0-fg); }
.cell-low  { background: var(--c-low);   color: #7a4800; }
.cell-mid  { background: var(--c-mid);   color: var(--c-lv1-fg); }
.cell-full { background: var(--c-full);  color: var(--c-lv3-fg); }
.cell-over { background: var(--c-over);  color: #7a1515; }

/* ── PROJECT ROWS ───────────────────────── */
.row-proj { transition: background .1s; }

.row-proj-plan { background: var(--c-plan-bg); }
.row-proj-plan .sticky-col { background: var(--c-plan-bg); }
.row-proj-plan:hover { background: var(--c-plan-hover); }
.row-proj-plan:hover .sticky-col { background: var(--c-plan-hover); }

.row-proj-fact { background: var(--c-fact-bg); }
.row-proj-fact .sticky-col { background: var(--c-fact-bg); }
.row-proj-fact:hover { background: var(--c-fact-hover); }
.row-proj-fact:hover .sticky-col { background: var(--c-fact-hover); }

.row-proj-fcst { background: var(--c-fcst-bg); border-bottom: 5px solid var(--c-bg); }
.row-proj-fcst .sticky-col { background: var(--c-fcst-bg); }
.row-proj-fcst:hover { background: var(--c-fcst-hover); }
.row-proj-fcst:hover .sticky-col { background: var(--c-fcst-hover); }

.td-proj {
  padding: 7px 16px;
  border-right: 1.5px solid var(--c-border); vertical-align: middle;
}
.td-proj-plan { border-left: 3px solid var(--c-plan); }
.td-proj-fact { border-left: 3px solid var(--c-fact); }
.td-proj-fcst { border-left: 3px solid var(--c-fcst); }

.proj-cell { display: flex; align-items: center; gap: 9px; min-width: 0; }
.proj-name     { font-size: var(--fs-sm); color: var(--c-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.proj-name-dim { font-size: var(--fs-sm); color: var(--c-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

.emp-cell { display: flex; align-items: center; gap: 8px; min-width: 0; }
.emp-name  { font-size: var(--fs-base); color: var(--c-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.emp-name-clamp {
  white-space: normal !important;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.3; word-break: break-word;
}
.pf-badge {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
}
.plan-badge { background: var(--c-plan-mid); color: var(--c-primary-d); }
.fact-badge { background: var(--c-fact-mid); color: var(--c-fact); }
.fcst-badge { background: var(--c-fcst-mid); color: var(--c-fcst); }

/* Input cells */
.td-plan-cell, .td-fact-cell, .td-fcst-cell {
  padding: 5px 4px; text-align: center;
  border-right: 1px solid var(--c-border);
  min-width: var(--cell-w);
}

.cell-inp {
  width: 70px; height: 33px;
  border: 1.5px solid var(--c-border); border-radius: var(--r-sm);
  text-align: center; font-size: var(--fs-sm); font-family: inherit;
  background: var(--c-surface); color: var(--c-text);
  outline: none; padding: 0 3px;
  transition: border-color .15s, box-shadow .15s;
}
.plan-inp:focus {
  border-color: var(--c-plan);
  box-shadow: 0 0 0 3px rgba(58,109,181,.15);
}
.fact-inp { border-color: color-mix(in srgb, var(--c-fact) 35%, var(--c-border)); }
.fact-inp:focus {
  border-color: var(--c-fact);
  box-shadow: 0 0 0 3px rgba(30,127,104,.15);
}

/* readonly plan inputs for employee */
.plan-inp[readonly] {
  background: var(--c-surface-2);
  color: var(--c-text-3);
  cursor: default;
  border-color: transparent;
  box-shadow: none;
}
.plan-inp[readonly]:focus {
  border-color: transparent;
  box-shadow: none;
}

/* ── ADD ROW ────────────────────────────── */
.row-add-proj { background: var(--c-surface-4); }
.row-add-proj .sticky-col { background: var(--c-surface-4); }
.td-add { padding: 9px 16px; border-right: 1.5px solid var(--c-border); }

.add-proj-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: 1.5px dashed var(--c-border);
  border-radius: var(--r-sm); padding: 6px 14px;
  color: var(--c-text-2); font-size: var(--fs-sm); font-family: inherit;
  cursor: pointer; transition: border-color .15s, color .15s;
}
.add-proj-btn:hover { border-color: var(--c-plan); color: var(--c-plan); }
.add-proj-btn .material-icons-round { font-size: 16px; }

/* Delete button */
.proj-chip {
  display: inline-block;
  background: rgba(0,0,0,.07); color: var(--c-text-2);
  border-radius: 4px; padding: 0 6px; font-size: 11px; width: fit-content;
}
.td-del { padding: 4px; text-align: center; vertical-align: middle; }
.btn-del {
  background: none; border: none; cursor: pointer;
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c-text-3); transition: background .15s, color .15s;
}
.btn-del:hover { background: var(--c-danger-bg); color: var(--c-danger); }
.btn-del .material-icons-round { font-size: 17px; }

/* ── TOTALS ───────────────────────────────── */
.row-total { border-top: 2px solid var(--c-border); }
.total-label {
  padding: 8px 16px; font-size: var(--fs-sm); color: var(--c-text-2);
  border-right: 1.5px solid var(--c-border);
}
.plan-total-label { background: var(--c-plan-bg); border-left: 3px solid var(--c-plan); }
.fact-total-label { background: var(--c-fact-bg); border-left: 3px solid var(--c-fact); }
.fcst-total-label { background: var(--c-fcst-bg); border-left: 3px solid var(--c-fcst); }
.td-total-plan, .td-total-fact {
  padding: 7px 4px; text-align: center; font-size: var(--fs-sm);
  border-right: 1px solid var(--c-border);
}

/* ── BOTTOM BAR ───────────────────────────── */
.bottom-bar { display: flex; justify-content: flex-end; padding: 16px 0 0; }
.bottom-bar--left { justify-content: flex-start; gap: 12px; }

/* ── DROPDOWN PORTAL ──────────────────────── */
.proj-drop-portal {
  background: var(--c-surface); border-radius: var(--r-md);
  border: 1.5px solid var(--c-border); box-shadow: var(--shadow-lg);
  width: 380px; overflow: hidden;
}
.proj-drop-search {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; border-bottom: 1.5px solid var(--c-border);
}
.drop-search-ic { font-size: 18px !important; color: var(--c-text-3); }
.proj-drop-search input {
  flex: 1; border: none; outline: none; font-size: var(--fs-base);
  font-family: inherit; color: var(--c-text); background: transparent;
}
.drop-list { max-height: 280px; overflow-y: auto; }
.drop-item {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 16px; cursor: pointer; font-size: var(--fs-base);
  transition: background .1s;
}
.drop-item:hover { background: var(--c-plan-bg); }
.drop-item-used { opacity: .38; cursor: default; }
.drop-item-used:hover { background: transparent; }

/* ── TOAST ────────────────────────────────── */
.save-toast {
  position: fixed; bottom: 26px; left: 50%;
  transform: translateX(-50%) translateY(60px);
  background: var(--c-text); color: #fff;
  padding: 11px 22px; border-radius: var(--r-pill);
  display: flex; align-items: center; gap: 8px;
  font-size: var(--fs-base); box-shadow: var(--shadow-lg); z-index: 1000;
  opacity: 0; pointer-events: none;
  transition: transform .28s cubic-bezier(.34,1.56,.64,1), opacity .2s;
}
.save-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.save-toast.error { background: var(--c-danger); }
.save-toast .material-icons-round { font-size: 18px; }

/* ── CONTRACT COLUMN ─────────────────────── */
.th-contract, .sticky-col-contract {
  position: sticky; z-index: 10;
  left: var(--sticky-w);
  background: var(--c-surface-2);
  min-width: 72px; max-width: 72px; width: 72px;
  box-shadow: 2px 0 6px rgba(0,0,0,.06);
  border-right: 1.5px solid var(--c-border);
}
.th-contract {
  text-align: center; font-size: var(--fs-xs);
  color: var(--c-text-3); padding: 6px 4px;
  vertical-align: middle;
}
.td-contract {
  padding: 5px 6px; text-align: center;
  vertical-align: middle;
}
.td-proj-contract {
  padding: 0; background: inherit;
  vertical-align: middle;
}
.row-emp .sticky-col-contract { background: var(--c-surface-3); }
.row-emp:hover .sticky-col-contract { background: var(--c-plan-bg); }
.row-proj-plan .sticky-col-contract { background: var(--c-plan-bg); }
.row-proj-plan:hover .sticky-col-contract { background: var(--c-plan-hover); }
.row-proj-fact .sticky-col-contract { background: var(--c-fact-bg); }
.row-proj-fact:hover .sticky-col-contract { background: var(--c-fact-hover); }
.row-proj-fcst .sticky-col-contract { background: var(--c-fcst-bg); }
.row-proj-fcst:hover .sticky-col-contract { background: var(--c-fcst-hover); }
.row-add-proj .sticky-col-contract { background: var(--c-surface-4); }
thead .th-contract { z-index: 11; }

.contract-inp {
  width: 46px; height: 30px;
  border: 1.5px solid var(--c-border); border-radius: 6px;
  text-align: center; font-size: var(--fs-sm);
  font-family: inherit; color: var(--c-text); background: var(--c-surface);
  outline: none; padding: 0 2px;
  transition: border-color .15s, box-shadow .15s;
}
.contract-inp:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(58,109,181,.15);
}
.contract-unit {
  font-size: 11px; color: var(--c-text-3); margin-left: 2px;
}

/* contract display (read-only for employee) */
.contract-val {
  font-size: var(--fs-sm);
  color: var(--c-text-2);
  padding: 4px 6px;
  display: inline-block;
}

/* ── CURRENT WEEK HIGHLIGHT ──────────────────── */
.th-week-current {
  background: var(--c-primary) !important;
  color: #fff !important;
  position: relative;
}
.th-week-current::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--c-primary);
}
.td-current-week {
  box-shadow: inset 0 0 0 1px rgba(58,109,181,.25);
  background-color: rgba(58,109,181,.04) !important;
}
td.td-emp-week.td-current-week {
  outline: 2px solid rgba(58,109,181,.4);
  outline-offset: -2px;
}

/* ── ROW-MODE RADIO GROUP ─────────────────── */
.row-radio-group {
  display: flex;
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-pill);
  padding: 3px;
  gap: 2px;
  box-shadow: var(--shadow-sm);
}
.row-radio {
  display: flex; align-items: center;
  cursor: pointer;
  border-radius: var(--r-pill);
  padding: 6px 16px;
  font-size: var(--fs-sm);
  color: var(--c-text-2);
  transition: background .15s, color .15s;
  user-select: none;
  white-space: nowrap;
}
.row-radio input[type="radio"] {
  position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}
.row-radio:hover { background: var(--c-bg); color: var(--c-text); }

/* Plan page — active = blue */
.row-radio-group:not(.rr-fact) .row-radio:has(input:checked) {
  background: var(--c-plan);
  color: #fff;
}
/* Fact page — active = teal */
.row-radio-group.rr-fact .row-radio:has(input:checked) {
  background: var(--c-fact);
  color: #fff;
}

/* ── USERS PAGE ───────────────────────────── */
.users-alert {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: var(--r-md);
  font-size: var(--fs-sm); margin-bottom: 14px;
}
.users-alert .material-icons-round { font-size: 18px; }
.users-alert-error {
  background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca;
}
.users-alert-success {
  background: #ecfdf3; color: #166534; border: 1px solid #bbf7d0;
}

.users-table th,
.users-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--c-border);
}
.users-table th {
  background: var(--c-surface-2);
  text-align: left;
  font-size: var(--fs-sm);
  color: var(--c-text-2);
}

.users-inp,
.users-select {
  width: 100%;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 6px 8px;
  font-size: var(--fs-sm);
  font-family: inherit;
  color: var(--c-text);
  background: var(--c-surface);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.users-inp:focus,
.users-select:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(58,109,181,.15);
}
.users-inp-num { max-width: 90px; }

.users-new-row td { background: var(--c-surface-4); }
.users-hint { font-size: var(--fs-sm); color: var(--c-text-3); }

/* Логин пользователя в таблице (read-only label) */
.user-login-label {
  font-size: var(--fs-sm);
  color: var(--c-text-2);
  padding: 4px 0;
  display: block;
}

/* ── PROJECT VIEW SPECIFIC ─────────────────── */
.proj-id-chip {
  display: inline-flex; align-items: center;
  background: var(--c-primary-l); color: var(--c-primary);
  border-radius: 5px; padding: 1px 7px;
  font-size: 11px; flex-shrink: 0;
  max-width: 100px; overflow: hidden;
}
.proj-id-chip > span {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.no-team-badge {
  display: inline-flex; align-items: center;
  background: #fff3cd; color: #7a5000;
  border: 1px solid #ffc107; border-radius: var(--r-pill);
  font-size: 11px; padding: 1px 8px; flex-shrink: 0;
}

.team-count-badge {
  display: inline-flex; align-items: center;
  border-radius: var(--r-pill);
  font-size: 11px; padding: 1px 8px; flex-shrink: 0;
}
.team-count-badge.proj-count-plan {
  background: var(--c-fact-bg); color: var(--c-fact); border: 1px solid var(--c-fact-mid);
}
.team-count-badge.proj-count-fact {
  background: var(--c-plan-bg); color: var(--c-plan); border: 1px solid var(--c-plan-mid);
}
.pv-sep { margin: 0 3px; color: var(--c-text-3); font-size: 10px; }

.pv-summary-cell {
  padding: 6px 4px; text-align: center;
  border-right: 1px solid var(--c-border);
  min-width: var(--cell-w);
}
.pv-hours {
  display: flex; flex-direction: column; align-items: center;
  gap: 1px; line-height: 1.3;
}
.pv-plan-h { font-size: 12px; color: var(--c-plan); display: block; }
.pv-fact-h { font-size: 11px; color: var(--c-fact); opacity: .85; display: block; }
.pv-fcst-h { font-size: 11px; color: var(--c-fcst); opacity: .85; display: block; }
.pv-empty  { color: var(--c-text-3); font-size: 11px; }

/* ── PROJECT COUNT BADGE ──────────────────── */
.proj-count-badge {
  display: inline-flex; align-items: center; gap: 2px;
  border-radius: var(--r-pill);
  font-size: 10px; padding: 1px 6px; flex-shrink: 0;
}
.proj-count-badge .material-icons-round { font-size: 10px !important; }
.proj-count-plan {
  background: var(--c-fact-bg); color: var(--c-fact);
  border: 1px solid var(--c-fact-mid);
}
.proj-count-fact {
  background: var(--c-plan-bg); color: var(--c-plan);
  border: 1px solid var(--c-plan-mid);
}

/* ── COMPETENCY MATRIX ────────────────────────────────────────────────────── */

/* Sticky columns */
.cm-sticky-group {
  position: sticky; left: 0; z-index: 10;
  min-width: 120px; max-width: 120px; width: 120px;
  background: var(--c-surface);
  box-shadow: 1px 0 0 var(--c-border);
}
thead .cm-sticky-group { background: var(--c-surface-2) !important; z-index: 11; }

.cm-sticky-skill {
  position: sticky; left: 120px; z-index: 10;
  min-width: 220px; max-width: 220px; width: 220px;
  background: var(--c-surface);
  box-shadow: 2px 0 6px rgba(0,0,0,.07);
  border-right: 1.5px solid var(--c-border);
}
thead .cm-sticky-skill { background: var(--c-surface-2) !important; z-index: 11; }

/* Employee header */
.cm-th-emp {
  min-width: 72px; max-width: 72px; width: 72px;
  padding: 5px 3px; text-align: center;
  background: var(--c-surface-2);
  border-right: 1px solid var(--c-border);
  vertical-align: middle;
}
.cm-th-emp-inner {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.cm-emp-name {
  font-size: 11px; color: var(--c-text); line-height: 1.3;
  word-break: break-word; text-align: center;
}
.cm-emp-surname { display: block; font-size: 11px; font-weight: 500; line-height: 1.3; }
.cm-emp-first   { display: block; font-size: 11px; font-weight: 500; line-height: 1.3; }

.cm-btn-del-emp {
  background: none; border: none; cursor: pointer;
  width: 20px; height: 20px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: transparent; transition: background .12s, color .12s;
  flex-shrink: 0;
}
.cm-th-emp:hover .cm-btn-del-emp { color: var(--c-text-3); }
.cm-btn-del-emp:hover { background: var(--c-danger-bg) !important; color: var(--c-danger) !important; }
.cm-btn-del-emp .material-icons-round { font-size: 13px; }

/* Add-employee header */
.cm-th-add-emp {
  min-width: 48px; max-width: 48px; width: 48px;
  padding: 4px; text-align: center; background: var(--c-surface-2);
}
.cm-btn-add-emp {
  background: none; border: 1.5px dashed var(--c-border);
  border-radius: 50%; width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--c-text-3);
  transition: border-color .15s, color .15s;
}
.cm-btn-add-emp:hover { border-color: var(--c-primary); color: var(--c-primary); }
.cm-btn-add-emp .material-icons-round { font-size: 18px; }

/* Group cell */
.cm-td-group {
  padding: 10px 10px 10px 14px; vertical-align: top;
  border-right: 1px solid var(--c-border);
  border-top: 2px solid var(--c-border);
  background: var(--c-surface-2);
}
.cm-sticky-group.cm-td-group { background: var(--c-surface-2); }
.cm-group-name {
  display: block; font-size: var(--fs-sm); color: var(--c-primary);
  letter-spacing: .3px; margin-bottom: 6px;
}
.cm-btn-add-skill {
  background: none; border: 1.5px dashed var(--c-border);
  border-radius: var(--r-sm); padding: 2px 8px;
  display: inline-flex; align-items: center; gap: 3px;
  cursor: pointer; color: var(--c-text-3); font-size: 11px;
  transition: border-color .15s, color .15s;
}
.cm-btn-add-skill:hover { border-color: var(--c-primary); color: var(--c-primary); }
.cm-btn-add-skill .material-icons-round { font-size: 14px; }

/* Skill name cell */
.cm-td-skill {
  padding: 7px 10px 7px 12px; vertical-align: middle;
  border-right: 1.5px solid var(--c-border);
  border-top: 1px solid var(--c-border);
  background: var(--c-surface);
}
.cm-skill-cell {
  display: flex; align-items: center; gap: 6px;
  min-width: 0;
}
.cm-skill-name {
  font-size: var(--fs-sm); color: var(--c-text);
  flex: 1; min-width: 0; word-break: break-word; line-height: 1.35;
}
.cm-btn-del-skill {
  background: none; border: none; cursor: pointer;
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: transparent; flex-shrink: 0;
  transition: background .12s, color .12s;
}
.cm-skill-cell:hover .cm-btn-del-skill { color: var(--c-text-3); }
.cm-btn-del-skill:hover { background: var(--c-danger-bg) !important; color: var(--c-danger) !important; }
.cm-btn-del-skill .material-icons-round { font-size: 14px; }

/* Level cell */
.cm-td-level {
  min-width: 72px; max-width: 72px; width: 72px;
  padding: 5px 3px; text-align: center; vertical-align: middle;
  border-right: 1px solid var(--c-border);
  border-top: 1px solid var(--c-border);
  transition: background .1s;
}
.cm-td-level.cm-editable { cursor: pointer; }
.cm-td-level.cm-editable:hover { filter: brightness(.94); }

/* Add-col placeholder */
.cm-td-add-col {
  min-width: 40px; max-width: 40px; width: 40px;
  border-top: 1px solid var(--c-border);
  border-right: 1px solid var(--c-border);
}

/* Level colours — same tokens as dashboard cell fills */
.cm-lv-null { background: var(--c-surface); }
.cm-lv-0    { background: var(--c-lv0-bg); }
.cm-lv-1    { background: var(--c-lv1-bg); }
.cm-lv-2    { background: var(--c-lv2-bg); }
.cm-lv-3    { background: var(--c-lv3-bg); }

/* Level badge (number inside td) */
.cm-level-badge {
  display: inline-block; border-radius: 5px;
  padding: 2px 7px; font-size: 11px; white-space: nowrap;
}
.cm-lv-badge-null { background: transparent; color: transparent; }
.cm-lv-badge-0    { background: var(--c-zero);      color: var(--c-lv0-fg); }
.cm-lv-badge-1    { background: var(--c-dot-mid);   color: var(--c-lv1-fg); }
.cm-lv-badge-2    { background: var(--c-plan-mid);  color: var(--c-lv2-fg); }
.cm-lv-badge-3    { background: var(--c-dot-full);  color: var(--c-lv3-fg); }

/* Legend dots for competency — same colors as dashboard legend */
.cm-lv-dot {
  display: inline-block; width: 13px; height: 13px; border-radius: 3px; flex-shrink: 0;
}
.cm-lv-null-dot { background: var(--c-dot-zero); border: 1px solid var(--c-border); }
.cm-lv-0-dot    { background: var(--c-dot-zero); }
.cm-lv-1-dot    { background: var(--c-dot-mid); }
.cm-lv-2-dot    { background: var(--c-plan-mid); }
.cm-lv-3-dot    { background: var(--c-dot-full); }

/* Add group button (tfoot) */
.cm-td-add-group {
  padding: 10px 16px;
  border-top: 2px solid var(--c-border);
  background: var(--c-surface-4);
}
.cm-btn-add-group {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: 1.5px dashed var(--c-border);
  border-radius: var(--r-sm); padding: 6px 14px;
  color: var(--c-text-2); font-size: var(--fs-sm); font-family: inherit;
  cursor: pointer; transition: border-color .15s, color .15s;
}
.cm-btn-add-group:hover { border-color: var(--c-primary); color: var(--c-primary); }
.cm-btn-add-group .material-icons-round { font-size: 16px; }

/* Level picker portal */
.cm-picker {
  background: var(--c-surface); border-radius: var(--r-md);
  border: 1.5px solid var(--c-border); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden;
  min-width: 150px;
}
.cm-pick-btn {
  border: none; background: none; cursor: pointer;
  padding: 9px 16px; text-align: left; font-size: var(--fs-sm);
  font-family: inherit; color: var(--c-text);
  transition: background .1s;
}
.cm-pick-btn:hover  { background: var(--c-bg); }
.cm-pick-null:hover { background: var(--c-lv0-bg); }
.cm-pick-0:hover    { background: var(--c-lv0-bg); }
.cm-pick-1:hover    { background: var(--c-lv1-bg); }
.cm-pick-2:hover    { background: var(--c-lv2-bg); }
.cm-pick-3:hover    { background: var(--c-lv3-bg); }

/* Skill sums column */
.cm-skill-sums {
  display: flex; gap: 3px; align-items: center;
  margin-left: auto; flex-shrink: 0;
}
.cm-sum-active, .cm-sum-inactive {
  display: inline-flex; align-items: center;
  border-radius: 4px; padding: 1px 5px;
  font-size: 10px; font-weight: 600;
}
.cm-sum-active   { background: var(--c-lv3-bg); color: var(--c-lv3-fg); }
.cm-sum-inactive { background: var(--c-lv1-bg); color: var(--c-lv1-fg); }

/* Dimmed cells for вне штата / уволен */
.cm-lv-dimmed { opacity: .5; }

/* competency table rows hover (group sticky bg) */
.cm-row:hover .cm-sticky-group { background: var(--c-bg); }
.cm-row:hover .cm-sticky-skill { background: var(--c-bg); }
.cm-row:hover td:not(.cm-td-group):not(.cm-td-skill) { background: inherit; }

/* ── MODAL (add employee) ─────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 9998;
  background: rgba(0,0,0,.45);
  align-items: center; justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal-card {
  background: var(--c-surface); border-radius: var(--r-lg);
  padding: 24px; min-width: 300px; box-shadow: var(--shadow-lg);
}
.modal-title {
  font-weight: 600; font-size: var(--fs-md);
  margin-bottom: 14px; color: var(--c-text);
}
.modal-select { width: 100%; margin-bottom: 18px; }
.modal-footer { display: flex; gap: 8px; justify-content: flex-end; }

/* ── CERTIFICATES PAGE ───────────────────────── */
.cert-table th, .cert-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--c-border);
  vertical-align: middle;
}
.cert-table th {
  background: var(--c-surface-2);
  font-size: var(--fs-sm);
  color: var(--c-text-2);
  text-align: left;
  white-space: nowrap;
}
.cert-table td { font-size: var(--fs-sm); }

.cert-inp {
  width: 100%;
  border: 1.5px solid var(--c-border); border-radius: var(--r-sm);
  padding: 4px 6px; font-size: var(--fs-sm); font-family: inherit;
  color: var(--c-text); background: var(--c-surface); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.cert-inp:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(58,109,181,.15);
}
.cert-filter-bar {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
}
.cert-filter-inp {
  flex: 1; max-width: 380px;
  border: 1.5px solid var(--c-border); border-radius: var(--r-pill);
  padding: 7px 14px; font-size: var(--fs-sm); font-family: inherit;
  color: var(--c-text); background: var(--c-surface); outline: none;
  transition: border-color .15s;
}
.cert-filter-inp:focus { border-color: var(--c-primary); }

.cert-badge {
  display: inline-block; border-radius: 5px;
  padding: 1px 8px; font-size: 11px; white-space: nowrap;
}
.cert-vendor { background: var(--c-primary-l); color: var(--c-primary-d); }
.cert-text {
  font-size: var(--fs-sm); color: var(--c-text); line-height: 1.4; display: block;
  padding: 4px 0;
}
.cert-link { color: var(--c-primary); }

/* ── ACCESS MATRIX ───────────────────────────── */
.am-cell {
  width: 72px; min-width: 72px; max-width: 72px;
  text-align: center; vertical-align: middle;
  padding: 0; cursor: default;
  border-right: 1px solid var(--c-border);
  border-top: 1px solid var(--c-border);
  transition: background .1s;
}
.am-cell-edit { cursor: pointer; }
.am-cell-edit:hover { background: var(--c-surface-2); }
.am-granted { background: var(--c-lv3-bg); }
.am-cell-edit.am-granted:hover { background: var(--c-fact-hover); }
.am-check {
  font-size: 16px !important;
  color: var(--c-lv3-fg);
}
.am-item-name {
  max-width: 220px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.am-dot {
  display: inline-block; width: 13px; height: 13px; border-radius: 3px; flex-shrink: 0;
}
.am-dot-granted { background: var(--c-lv3-bg); }
.am-dot-empty   { background: var(--c-dot-zero); border: 1px solid var(--c-border); }
.am-add-row td { padding: 6px 8px; border-top: 2px dashed var(--c-border); }

/* ── MULTISELECT FILTER ───────────────────── */
.filter-multi {
  position: relative;
}
.filter-multi-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--c-surface); border: 1.5px solid var(--c-border);
  border-radius: var(--r-pill); padding: 6px 10px 6px 12px;
  font-size: var(--fs-sm); color: var(--c-text-2);
  cursor: pointer; white-space: nowrap;
  box-shadow: var(--shadow-sm); font-family: inherit;
  transition: border-color .15s, background .15s;
}
.filter-multi-btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
.filter-multi-btn .material-icons-round { font-size: 16px !important; }
.filter-multi-btn .fm-arrow { font-size: 18px !important; transition: transform .15s; }
.filter-multi.open .fm-arrow { transform: rotate(180deg); }
.filter-multi-badge {
  display: none; align-items: center; justify-content: center;
  min-width: 17px; height: 17px; border-radius: 100px;
  background: var(--c-primary); color: #fff; font-size: 10px;
  padding: 0 4px;
}
.filter-multi.has-sel .filter-multi-badge { display: inline-flex; }
.filter-multi.has-sel .filter-multi-btn { border-color: var(--c-primary); background: var(--c-primary-l); color: var(--c-primary); }

.filter-multi-drop {
  display: none; position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 220px; max-width: 300px;
  background: var(--c-surface); border: 1.5px solid var(--c-border);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  z-index: 500; padding: 6px 0; max-height: 320px; overflow-y: auto;
}
.filter-multi.open .filter-multi-drop { display: block; }

.fm-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 14px; cursor: pointer; font-size: var(--fs-sm);
  color: var(--c-text); transition: background .1s;
}
.fm-item:hover { background: var(--c-surface-2); }
.fm-item input[type=checkbox] { accent-color: var(--c-primary); width: 14px; height: 14px; flex-shrink: 0; }
.fm-divider {
  padding: 4px 14px 2px; font-size: 11px; color: var(--c-text-3);
  border-top: 1px solid var(--c-border); margin-top: 4px;
}
.fm-search {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-bottom: 1px solid var(--c-border); margin-bottom: 4px;
}
.fm-search .material-icons-round { font-size: 16px !important; color: var(--c-text-3); }
.fm-search input {
  border: none; outline: none; font-size: var(--fs-sm); background: transparent;
  font-family: inherit; color: var(--c-text); width: 100%;
}

/* ── ARCHIVE BUTTON ───────────────────────── */
.btn-archive-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--c-surface); border: 1.5px solid var(--c-border);
  border-radius: var(--r-pill); padding: 6px 12px;
  font-size: var(--fs-sm); color: var(--c-text-3);
  cursor: pointer; white-space: nowrap;
  box-shadow: var(--shadow-sm); font-family: inherit;
  transition: border-color .15s, background .15s, color .15s;
  text-decoration: none;
}
.btn-archive-toggle:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn-archive-toggle.active { background: var(--c-lv1-bg); border-color: #c8b800; color: var(--c-lv1-fg); }
.btn-archive-toggle .material-icons-round { font-size: 16px !important; }

/* ── ARCHIVED ROW STYLE ───────────────────── */
.row-archived-proj .td-emp .emp-name { color: var(--c-text-3); text-decoration: line-through; }
.archived-badge {
  display: inline-flex; align-items: center; gap: 2px;
  background: var(--c-lv1-bg); border: 1px solid #c8b800;
  border-radius: var(--r-pill); padding: 1px 7px;
  font-size: 10px; color: var(--c-lv1-fg); flex-shrink: 0;
}

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 700px) {
  :root { --sticky-w: 140px; --cell-w: 70px; }
  .cell-inp { width: 54px; }
  .scroll-arrow-left  { left: 4px; }
  .scroll-arrow-right { right: 4px; }
  .row-radio-group { margin-left: 0; }
  .topbar-controls { flex-wrap: wrap; }
}
