/* ===== Tinx Project Planner v6 ===== */
:root {
  --tinx-dark:  #17014c;
  --tinx-green: #52d048;
  --tinx-green-light: rgba(82,208,72,.15);
  --sidebar-w: 220px;
  --font: 'Inter', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; font-family: var(--font); font-size: 13px; background: #f5f5f8; color: #1a1a2e; }
a { text-decoration: none; }
button { cursor: pointer; font-family: var(--font); }

/* ===== APP SHELL ===== */
#txpl-app { display: flex; height: 100vh; width: 100vw; overflow: hidden; }

/* ===== SIDEBAR ===== */
#txpl-sidebar {
  width: var(--sidebar-w);
  background: #fff !important;
  border-right: 1px solid #e4e4f0;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
}
.txpl-logo-wrap {
  padding: 20px 18px 14px;
  border-bottom: 1px solid #e8e8f0;
  background: #fff !important;
}
.txpl-logo-wrap img {
  width: 130px;
  height: auto;
  display: block;
  filter: none !important;
}
.txpl-nav { padding: 12px 10px; flex: 1; }
.txpl-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #555;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, color .15s;
  margin-bottom: 2px;
}
.txpl-nav-item:hover  { background: #f0eefb; color: var(--tinx-dark); }
.txpl-nav-item.active { background: var(--tinx-dark); color: #fff; }
.txpl-nav-item.active svg path,
.txpl-nav-item.active svg rect,
.txpl-nav-item.active svg circle { stroke: #fff; }
.txpl-nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.txpl-sidebar-footer {
  padding: 12px 14px;
  border-top: 1px solid #e8e8f0;
  font-size: 11px;
  color: #999;
}
.txpl-logout-btn {
  display: block;
  width: 100%;
  padding: 8px 12px;
  background: none;
  border: 1px solid #e4e4f0;
  border-radius: 7px;
  color: #666;
  font-size: 12px;
  text-align: left;
  margin-top: 6px;
  transition: background .15s;
}
.txpl-logout-btn:hover { background: #fee2e2; color: #c00; border-color: #fca5a5; }

/* ===== MAIN CONTENT ===== */
#txpl-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ===== TOPBAR ===== */
#txpl-topbar {
  height: 52px;
  background: #fff;
  border-bottom: 1px solid #e4e4f0;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
  flex-shrink: 0;
}
#txpl-topbar h1 { font-size: 16px; font-weight: 700; color: var(--tinx-dark); flex: 1; }
.txpl-toolbar-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid #e0e0ec;
  background: #fff;
  color: #555;
  font-size: 12px;
  font-weight: 500;
  transition: all .15s;
  line-height: 1;
  box-sizing: border-box;
}
.txpl-toolbar-btn:hover { border-color: var(--tinx-dark); color: var(--tinx-dark); }
.txpl-toolbar-btn.primary {
  background: var(--tinx-dark);
  border-color: var(--tinx-dark);
  color: #fff;
}
.txpl-toolbar-btn.primary:hover { background: #2d0880; }

/* ===== PAGE CONTENT ===== */
#txpl-page { flex: 1; overflow-y: auto; overflow-x: auto; padding: 0; }

/* ===== LOGIN SCREEN ===== */
#txpl-login {
  position: fixed;
  inset: 0;
  background: var(--tinx-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.txpl-login-box {
  background: #fff;
  border-radius: 16px;
  padding: 40px 44px;
  width: 360px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.txpl-login-box img { width: 140px; display: block; margin: 0 auto 24px; }
.txpl-login-box h2 { text-align: center; font-size: 17px; color: var(--tinx-dark); margin-bottom: 20px; font-weight: 700; }
.txpl-login-box input {
  width: 100%;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 12px;
  font-family: var(--font);
  transition: border-color .15s;
}
.txpl-login-box input:focus { outline: none; border-color: var(--tinx-dark); }
.txpl-login-box button {
  width: 100%;
  background: var(--tinx-dark);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 4px;
  transition: background .15s;
}
.txpl-login-box button:hover { background: #2d0880; }
#txpl-login-err { color: #c00; font-size: 12px; text-align: center; margin-top: 10px; min-height: 18px; }

/* ===== GANTT ===== */
#txpl-gantt-wrap { display: flex; flex-direction: column; height: 100%; }
#txpl-gantt-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-bottom: 1px solid #e8e8f0;
  background: #fafafa;
  flex-shrink: 0;
  flex-wrap: wrap;
  row-gap: 6px;
}
#txpl-gantt-toolbar .txpl-toolbar-row-break {
  width: 100%;
  flex-basis: 100%;
  height: 0;
  border-top: 1px solid #eee;
  margin: 0 -16px;
}
#txpl-gantt-toolbar select {
  border: 1px solid #e0e0ec;
  border-radius: 7px;
  padding: 6px 10px;
  font-size: 12px;
  font-family: var(--font);
  color: var(--tinx-dark);
}
.txpl-gantt-chk {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--tinx-dark);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}
.txpl-gantt-chk input[type="checkbox"] {
  accent-color: #17014c;
  width: 14px;
  height: 14px;
  cursor: pointer;
}
#txpl-gantt-scroller { flex: 1; overflow: auto; }
#txpl-gantt-table { border-collapse: collapse; min-width: 100%; }
#txpl-gantt-table th {
  background: #f5f5fb;
  border: 1px solid #e8e8f0;
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #888;
  text-align: center;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 2;
}
#txpl-gantt-table th.txpl-label-col {
  text-align: left;
  min-width: 160px;
  background: #fff;
  left: 0;
  z-index: 3;
}
#txpl-gantt-table td {
  border: 1px solid #f0f0f8;
  padding: 4px;
  height: 42px;
  vertical-align: middle;
  position: relative;
}
#txpl-gantt-table td.txpl-label-col {
  background: #fff;
  position: sticky;
  left: 0;
  z-index: 1;
  padding: 6px 12px;
  min-width: 160px;
}
.txpl-gantt-bar {
  position: absolute;
  top: 5px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  z-index: 1;
  transition: filter .15s, transform .1s;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  box-sizing: border-box;
}
.txpl-gantt-bar:hover { filter: brightness(1.1); transform: scaleY(1.04); }
.txpl-today-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--tinx-green);
  z-index: 2;
  pointer-events: none;
}
.txpl-today-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tinx-green);
  position: absolute;
  top: -4px;
  left: -3px;
}
.txpl-project-label { display: flex; align-items: center; gap: 7px; }
.txpl-project-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.txpl-con-initials {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== TABLE (projects/consultants) ===== */
.txpl-data-table { width: 100%; border-collapse: collapse; }
.txpl-data-table th {
  background: #f5f5fb;
  border-bottom: 2px solid #e0e0ec;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #888;
  text-align: left;
}
.txpl-data-table td {
  border-bottom: 1px solid #f0f0f8;
  padding: 7px 10px;
  font-size: 13px;
  vertical-align: middle;
}
.txpl-data-table tr:hover td { background: #fafaff; }
.txpl-color-dot { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.txpl-action-btn {
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid #e0e0ec;
  background: #fff;
  font-size: 11px;
  color: #555;
  margin-left: 4px;
  transition: all .15s;
}
.txpl-action-btn:hover { border-color: var(--tinx-dark); color: var(--tinx-dark); }
.txpl-action-btn.danger:hover { border-color: #dc2626; color: #dc2626; background: #fee2e2; }

/* ===== SECTION HEADER ===== */
.txpl-section-hdr {
  padding: 16px 20px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #e8e8f0;
}
.txpl-section-hdr h2 { font-size: 15px; font-weight: 700; color: var(--tinx-dark); flex: 1; }

/* ===== FORM ROWS ===== */
.txpl-form-row { margin-bottom: 12px; }
.txpl-form-row label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: #888;
  margin-bottom: 5px;
}
.txpl-form-row input,
.txpl-form-row select,
.txpl-form-row textarea {
  width: 100%;
  border: 1.5px solid #e0e0ec;
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 13px;
  font-family: var(--font);
  color: #1a1a2e;
  background: #fff;
  transition: border-color .15s;
}
.txpl-form-row input:focus,
.txpl-form-row select:focus,
.txpl-form-row textarea:focus {
  outline: none;
  border-color: var(--tinx-dark);
  box-shadow: 0 0 0 3px rgba(23,1,76,.08);
}
.txpl-form-row textarea { resize: vertical; min-height: 72px; }

/* ===== MODAL ===== */
.txpl-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(23,1,76,.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.txpl-modal {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 12px 48px rgba(23,1,76,.2);
  overflow: hidden;
}
.txpl-modal-lg { max-width: 700px; }
.txpl-modal-hdr {
  background: var(--tinx-dark);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.txpl-modal-hdr h2 { color: #fff; font-size: 15px; font-weight: 600; }
.txpl-modal-close {
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.txpl-modal-close:hover { background: rgba(255,255,255,.25); }
.txpl-modal-body { padding: 22px 24px; max-height: 70vh; overflow-y: auto; }
.txpl-modal-actions {
  padding: 14px 24px;
  background: #fafafa;
  border-top: 1px solid #e8e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}
.txpl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  border: none;
  transition: all .15s;
}
.txpl-btn-primary  { background: var(--tinx-dark); color: #fff; }
.txpl-btn-primary:hover { background: #2d0880; }
.txpl-btn-ghost    { background: #f0f0f8; color: #555; }
.txpl-btn-ghost:hover { background: #e4e4f0; }
.txpl-btn-danger   { background: #fee2e2; color: #dc2626; }
.txpl-btn-danger:hover { background: #fecaca; }
.txpl-btn-green    { background: var(--tinx-green); color: var(--tinx-dark); }
.txpl-btn-green:hover { background: #3ab833; }
.txpl-modal-err {
  background: #fee2e2;
  color: #b91c1c;
  border-radius: 7px;
  padding: 8px 12px;
  font-size: 12px;
  margin-bottom: 12px;
  display: none;
}

/* ===== MULTI-PERIOD MODAL ===== */
.txpl-period-section-hdr {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #888;
  padding: 12px 0 8px;
  border-bottom: 2px solid var(--tinx-green);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Each period row: two-column grid */
.txpl-pr {
  border: 1.5px solid #e8e8f0;
  border-radius: 10px;
  padding: 14px 14px 10px;
  margin-bottom: 12px;
  background: #fafaff;
  position: relative;
}
/* INDEX LABEL: hidden */
.txpl-pr-idx { display: none; }

.txpl-pr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}
.txpl-pr-left  { display: flex; flex-direction: column; }
.txpl-pr-right { display: flex; flex-direction: column; position: relative; }

/* Date row inside left column */
.txpl-pr-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

/* Remove button - absolute top-right of right column */
.txpl-pr-remove {
  position: absolute;
  top: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid rgba(23,1,76,.15);
  border-radius: 6px;
  color: rgba(23,1,76,.35);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  transition: all .15s;
  flex-shrink: 0;
}
.txpl-pr-remove:hover { background: #fee2e2; border-color: #dc2626; color: #dc2626; }

/* Right column note + description with padding for remove button */
.txpl-pr-right .txpl-form-row:first-child { padding-right: 34px; }

/* Add row button */
.txpl-add-row-btn {
  width: 100%;
  padding: 11px;
  border: 2px dashed #c4c4e0;
  border-radius: 10px;
  background: #fff;
  color: #888;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font);
  transition: all .15s;
  margin-top: 4px;
}
.txpl-add-row-btn:hover { border-color: var(--tinx-green); color: var(--tinx-dark); background: var(--tinx-green-light); }

/* Footer count */
.txpl-period-count { font-size: 12px; color: #888; margin-right: auto; }

/* ===== TOOLTIP ===== */
#txpl-tooltip {
  position: fixed;
  background: var(--tinx-dark);
  color: #fff;
  border-radius: 10px;
  padding: 11px 15px;
  font-size: 12px;
  pointer-events: none;
  z-index: 99999;
  display: none;
  min-width: 190px;
  box-shadow: 0 4px 18px rgba(23,1,76,.25);
}
#txpl-tooltip b { display: block; font-size: 13px; margin-bottom: 5px; }
#txpl-tooltip span { display: block; color: rgba(255,255,255,.72); font-size: 11px; line-height: 1.7; }

/* ===== DOCUMENT LIST ===== */
.txpl-doc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid #e8e8f0;
  border-radius: 8px;
  margin-bottom: 6px;
  background: #fafaff;
}
.txpl-doc-icon { font-size: 18px; }
.txpl-doc-name { flex: 1; font-size: 12px; font-weight: 600; color: var(--tinx-dark); }
.txpl-doc-date { font-size: 11px; color: #aaa; }

/* ===== BADGE ===== */
.txpl-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.txpl-badge-active   { background: var(--tinx-green-light); color: #1a6e16; }
.txpl-badge-inactive { background: #f3f3f3; color: #999; }
.txpl-badge-ms       { background: #ede9fb; color: #17014c; }

/* ===== ICON LINKS ===== */
.txpl-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #f0f0f8;
  color: #555;
  transition: background .15s;
  margin-left: 4px;
}
.txpl-icon-link:hover { background: var(--tinx-dark); color: #fff; }
.txpl-icon-link svg { width: 14px; height: 14px; }

/* ===== TIMESLOT VIEW ===== */
#txpl-ts-wrap { display: flex; flex-direction: column; height: 100%; }
#txpl-ts-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-bottom: 1px solid #e8e8f0;
  background: #fafafa;
  flex-shrink: 0;
}
.txpl-ts-grid {
  display: grid;
  grid-template-columns: 60px 1fr;
  overflow: auto;
  flex: 1;
}
.txpl-ts-times { border-right: 1px solid #e8e8f0; }
.txpl-ts-hour {
  height: 60px;
  display: flex;
  align-items: flex-start;
  padding: 4px 8px 0;
  font-size: 11px;
  color: #aaa;
  border-bottom: 1px solid #f0f0f8;
}
.txpl-ts-col { position: relative; }
.txpl-ts-slot {
  position: absolute;
  left: 4px;
  right: 4px;
  border-radius: 7px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.txpl-ts-slot:hover { filter: brightness(1.1); }
.txpl-ts-gridline {
  height: 60px;
  border-bottom: 1px solid #f0f0f8;
}

/* ===== PROJECT FILTERS ===== */
#txpl-proj-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
#txpl-proj-filters select {
  border: 1.5px solid #e0dff0;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  font-family: var(--font);
  color: #17014c;
  background: #fff;
  cursor: pointer;
  min-width: 160px;
  transition: border-color .15s;
}
#txpl-proj-filters select:focus { outline: none; border-color: #17014c; }
#txpl-proj-filters select:hover { border-color: #17014c; }

/* ===== TABS ===== */
.txpl-tabs { display:flex; gap:0; margin-bottom:20px; border-bottom:2px solid #f0f0f0; }
.txpl-tab { background:none; border:none; padding:10px 20px; font-size:13px; font-weight:600; color:#888; cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-2px; transition:color .15s,border-color .15s; }
.txpl-tab.active { color:#17014c; border-bottom-color:#17014c; }
.txpl-tab-content { }

/* ===== NOTES ===== */
.txpl-note-add { background:#f8f7fc; border-radius:10px; padding:16px; margin-bottom:20px; }
.txpl-notes-list { display:flex; flex-direction:column; gap:12px; }
.txpl-note-group { }
.txpl-note-date-hdr { font-size:11px; font-weight:700; color:#17014c; text-transform:uppercase; letter-spacing:.06em; padding:4px 0 8px; border-bottom:1px solid #f0f0f0; margin-bottom:8px; }
.txpl-note-item { background:#fff; border:1px solid #ece9f4; border-radius:8px; padding:12px 14px; display:flex; flex-direction:column; gap:6px; }
.txpl-note-body { font-size:13px; color:#1a1a2e; white-space:pre-wrap; line-height:1.5; }
.txpl-note-meta { display:flex; align-items:center; justify-content:space-between; font-size:11px; color:#aaa; }
.txpl-note-del { background:none; border:none; color:#e74c3c; font-size:16px; cursor:pointer; padding:0 4px; line-height:1; opacity:.6; }
.txpl-note-del:hover { opacity:1; }
.txpl-loading { color:#aaa; text-align:center; padding:20px; font-size:13px; }

/* ===== TEAM CHECKBOXES ===== */
.txpl-team-checkboxes { display:flex; flex-direction:column; gap:10px; }
.txpl-team-check { display:flex; align-items:center; gap:10px; cursor:pointer; padding:8px 12px; border-radius:8px; border:1px solid #ece9f4; font-size:13px; transition:background .12s; }
.txpl-team-check:hover { background:#f8f7fc; }
.txpl-team-check input[type=checkbox] { width:16px; height:16px; accent-color:#17014c; cursor:pointer; }

/* ===== SETTINGS PAGE ===== */
.txpl-settings-section { background:#fff; border-radius:12px; border:1px solid #ece9f4; padding:20px; margin-bottom:20px; }

/* ===== NOTES BUTTON IN TABLE ===== */
button.txpl-proj-notes { font-size:16px; cursor:pointer; }
button.txpl-proj-notes:hover { opacity:1; }

/* ===== v8 ADDITIONS ===== */

/* Sortable columns */
.txpl-sortable { cursor:pointer; user-select:none; white-space:nowrap; }
.txpl-sortable:hover { color:var(--tinx-dark); }
.txpl-sort-icon { font-size:11px; color:#aaa; }

/* Yes/No badges */
.txpl-badge-yes { background:#52d048 !important; color:#fff !important; }
.txpl-badge-no  { background:#e0e0e0 !important; color:#666 !important; }

/* Settings sections */
.txpl-settings-section-title { font-size:14px; font-weight:700; color:var(--tinx-dark); margin-bottom:6px; }
.txpl-settings-desc { color:#888; font-size:13px; margin-bottom:16px; }

/* Hide completed toggle */
.txpl-toggle-label { display:flex; align-items:center; gap:6px; font-size:13px; color:#666; cursor:pointer; white-space:nowrap; }
.txpl-toggle-label input[type=checkbox] { width:15px; height:15px; accent-color:#17014c; cursor:pointer; }


/* ===== TIJDVELDEN ===== */
.txpl-pr-dates input[type="time"],
.txpl-modal-body input[type="time"] {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  color: #17014c;
  background: #fff;
  box-sizing: border-box;
}

/* ===== CHECKLIST TAB ===== */
.txpl-cl-section { margin-bottom: 24px; }
.txpl-cl-phase-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.txpl-cl-phase {
  font-size: 13px;
  font-weight: 700;
  color: #17014c;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.txpl-cl-pct {
  font-size: 11px;
  color: #52d048;
  font-weight: 600;
}
.txpl-cl-progress-wrap {
  height: 4px;
  background: #e8e4f3;
  border-radius: 3px;
  margin-bottom: 10px;
  overflow: hidden;
}
.txpl-cl-progress-bar {
  height: 100%;
  background: #52d048;
  border-radius: 3px;
  transition: width 0.3s ease;
}
.txpl-cl-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: #1a1a2e;
  transition: background 0.15s;
  line-height: 1.4;
}
.txpl-cl-item:hover { background: #f5f3fc; }
.txpl-cl-item input[type=checkbox] {
  margin-top: 2px;
  accent-color: #52d048;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  cursor: pointer;
}
.txpl-cl-item.txpl-cl-done span {
  text-decoration: line-through;
  color: #aaa;
}

/* ===== DOCUMENTEN TAB ===== */
.txpl-doc-upload {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eee;
}
.txpl-doc-upload-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #17014c;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.txpl-doc-upload-label:hover { background: #2d1a7a; }
.txpl-docs-list { display: flex; flex-direction: column; gap: 8px; }
.txpl-doc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #f9f8ff;
  border: 1px solid #e8e4f3;
  border-radius: 7px;
  font-size: 13px;
}
.txpl-doc-link {
  flex: 1;
  color: #17014c;
  text-decoration: none;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.txpl-doc-link:hover { text-decoration: underline; color: #52d048; }
.txpl-doc-meta { color: #aaa; font-size: 11px; white-space: nowrap; }
.txpl-doc-del {
  color: #ef4444 !important;
  background: none !important;
  border: none !important;
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  flex-shrink: 0;
  line-height: 1;
}
.txpl-doc-del:hover { color: #dc2626 !important; }

/* ===== INVITE MODAL ===== */
.txpl-inv-section { margin-bottom: 16px; }
.txpl-inv-section .txpl-cl-phase {
  font-size: 12px;
  margin-bottom: 10px;
  border-bottom: 2px solid #52d048;
  padding-bottom: 5px;
}

/* ===== CLIENTS PAGE ===== */
.txpl-client-contacts {
  color: #17014c !important;
  font-size: 16px !important;
}

/* Client link in projects table */
.txpl-client-link {
  color: #17014c;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  border-bottom: 1px dashed #17014c;
}
.txpl-client-link:hover { color: #52d048; border-color: #52d048; }

/* Client row expand & project badge */
.txpl-client-row:hover { background: #f9f8fc !important; }
.txpl-client-projects-row td { padding: 8px 16px 12px 32px !important; background: #faf9fc; }
.txpl-proj-badge:hover { background: #52d048 !important; }

/* Client link in projects table */
.txpl-client-link {
  color: #17014c;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  border-bottom: 1px dashed #17014c;
}
.txpl-client-link:hover { color: #52d048; border-color: #52d048; }

/* Project table compact action buttons */
#txpl-proj-table .txpl-action-btn {
  padding: 3px 7px;
  font-size: 13px;
  margin: 0 1px;
  border-radius: 5px;
}
#txpl-proj-table td:last-child {
  white-space: nowrap;
  padding-right: 12px;
  min-width: 180px;
  width: 180px;
}

/* ===== DASHBOARD ===== */
.txpl-dashboard {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.txpl-dash-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.txpl-dash-card {
  background: #fff;
  border-radius: 10px;
  padding: 18px 20px 14px;
  box-shadow: 0 1px 6px rgba(23,1,76,.07);
  cursor: pointer;
  transition: box-shadow .15s, transform .12s;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.txpl-dash-card:hover { box-shadow: 0 4px 16px rgba(23,1,76,.12); transform: translateY(-2px); }
.txpl-dash-card-icon { font-size: 22px; margin-bottom: 4px; }
.txpl-dash-card-value { font-size: 28px; font-weight: 800; line-height: 1; }
.txpl-dash-card-label { font-size: 11px; color: #888; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

.txpl-dash-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.txpl-dash-panel {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(23,1,76,.07);
  overflow: hidden;
}
.txpl-dash-panel-hdr {
  background: #f5f3fa;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 700;
  color: #17014c;
  border-bottom: 1px solid #ede9f7;
  letter-spacing: .02em;
}
.txpl-dash-panel-body {
  padding: 10px 14px;
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.txpl-dash-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .1s;
}
.txpl-dash-item:hover { background: #f5f3fa; }
.txpl-dash-empty { color: #bbb; font-size: 12px; font-style: italic; padding: 10px 4px; }

/* Milestone/status bar chart rows */
.txpl-dash-ms-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
}
.txpl-dash-ms-label {
  font-size: 11px;
  color: #555;
  width: 120px;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.txpl-dash-ms-bar-wrap {
  flex: 1;
  background: #f0edf8;
  border-radius: 4px;
  height: 10px;
  overflow: hidden;
}
.txpl-dash-ms-bar {
  height: 100%;
  background: #17014c;
  border-radius: 4px;
  transition: width .4s ease;
  min-width: 4px;
}
.txpl-dash-ms-count {
  font-size: 11px;
  font-weight: 700;
  color: #17014c;
  width: 18px;
  text-align: right;
  flex-shrink: 0;
}
.txpl-dash-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Note dot on Gantt bars */
.txpl-bar-note-dot {
  font-size: 8px;
  opacity: 0.75;
  margin-left: 3px;
  vertical-align: middle;
}

/* Capacity view */
.txpl-cap-grid {
  display: grid;
  gap: 2px;
}
.txpl-cap-cell {
  border-radius: 3px;
  font-size: 9px;
  padding: 2px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.txpl-cap-cell:hover { opacity: .85; }
.txpl-cap-free {
  background: #f0edf8;
  color: #bbb;
  text-align: center;
}
.txpl-cap-busy {
  color: #fff;
}
.txpl-cap-conflict {
  outline: 2px solid #ef4444;
  outline-offset: -2px;
}

/* ===== BAR RESIZE HANDLES ===== */
.txpl-gantt-bar {
  display: flex;
  align-items: center;
  overflow: visible !important;
}
.txpl-bar-inner-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
  font-size: 11px;
  font-weight: 600;
  padding: 0 4px;
}
.txpl-bar-resize-handle {
  width: 6px;
  height: 100%;
  flex-shrink: 0;
  cursor: ew-resize;
  opacity: 0;
  transition: opacity .15s;
  border-radius: 2px;
  background: rgba(255,255,255,.5);
  position: relative;
  z-index: 3;
}
.txpl-bar-resize-left  { margin-right: 2px; cursor: w-resize; }
.txpl-bar-resize-right { margin-left: 2px;  cursor: e-resize; }
.txpl-gantt-bar:hover .txpl-bar-resize-handle { opacity: 1; }

/* Timestamp in form cards */
.txplf-form-timestamp {
  font-size: 10px;
  color: #aaa;
  margin-left: 6px;
  font-weight: 400;
}

/* ===== SLIM INPLANNEN MODAL ===== */
.txpl-modal-xl { max-width: 820px; width: 96vw; }

.txpl-sm-section-title {
  font-size: 11px;
  font-weight: 700;
  color: #17014c;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid #52d048;
}
.txpl-sm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}
.txpl-sm-hint {
  display: block;
  font-size: 10px;
  color: #aaa;
  margin-top: 3px;
}
.txpl-sm-warning {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  color: #92400e;
  margin-bottom: 12px;
}

/* Voorstel header */
.txpl-sm-proposal-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f5f3fa;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 14px;
  gap: 16px;
}
.txpl-sm-con-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.txpl-sm-con-sel {
  font-size: 13px;
  font-weight: 600;
  color: #17014c;
  border: 1px solid #e0d9f0;
  border-radius: 6px;
  padding: 5px 10px;
  background: #fff;
}
.txpl-sm-stats {
  display: flex;
  gap: 20px;
}
.txpl-sm-stat {
  text-align: center;
}
.txpl-sm-stat-val {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #17014c;
  line-height: 1;
}
.txpl-sm-stat-lbl {
  display: block;
  font-size: 10px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: 2px;
}

/* Planning tabel */
.txpl-sm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.txpl-sm-table thead th {
  background: #f5f3fa;
  color: #17014c;
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 7px 10px;
  border-bottom: 2px solid #e0d9f0;
  text-align: left;
}
.txpl-sm-block-row td {
  padding: 6px 8px;
  border-bottom: 1px solid #f0edfa;
  vertical-align: middle;
}
.txpl-sm-block-row:hover td { background: #faf9fc; }
.txpl-sm-has-conflict td { background: #fff9f9; }
.txpl-sm-has-conflict:hover td { background: #fff5f5; }

.txpl-sm-conflict-badge {
  font-size: 10px;
  background: #fef2f2;
  color: #ef4444;
  border: 1px solid #fecaca;
  border-radius: 4px;
  padding: 1px 5px;
  font-weight: 600;
}
.txpl-sm-dow {
  display: inline-block;
  width: 22px;
  font-size: 10px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
}
.txpl-sm-table input[type="date"],
.txpl-sm-table input[type="time"] {
  border: 1px solid #e0d9f0;
  border-radius: 5px;
  padding: 4px 6px;
  font-size: 12px;
  color: #17014c;
  background: #fff;
}
.txpl-sm-table input[type="date"]:focus,
.txpl-sm-table input[type="time"]:focus {
  outline: none;
  border-color: #17014c;
}
.txpl-sm-hours-cell {
  font-weight: 700;
  color: #17014c;
  white-space: nowrap;
}

/* ===== GO-LIVE KALENDER ===== */
.gl-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.gl-cal-hdr {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  padding: 6px 0;
  letter-spacing: .05em;
}
.gl-cal-cell {
  min-height: 80px;
  background: #fff;
  border: 1px solid #ede9f7;
  border-radius: 6px;
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: background .1s;
}
.gl-cal-cell:hover { background: #faf8ff; }
.gl-empty { background: #faf9fc; border-color: #f5f3fa; }
.gl-weekend { background: #faf9fc; }
.gl-weekend .gl-day-num { color: #ccc; }
.gl-today { background: #f0fdf4; border-color: #52d048; }
.gl-today .gl-day-num { color: #17014c; font-weight: 800; background: #52d048; border-radius: 50%; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; }
.gl-has-gl { border-color: #17014c; }
.gl-day-num {
  font-size: 11px;
  font-weight: 600;
  color: #555;
  line-height: 22px;
  width: 22px;
  text-align: center;
}
.gl-proj-badge {
  font-size: 9px;
  font-weight: 600;
  border-radius: 4px;
  padding: 2px 5px;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: opacity .1s;
  line-height: 1.4;
}
.gl-proj-badge:hover { opacity: .85; }

/* Recurring badge in smart plan */
.txpl-sm-recur-badge {
  font-size: 10px;
  background: #ede9f7;
  color: #7c3aed;
  border: 1px solid #d4c8f0;
  border-radius: 4px;
  padding: 1px 5px;
  font-weight: 600;
  margin-left: 3px;
}

/* ===== AI PLANNINGSASSISTENT ===== */
#txpl-page.txpl-gantt-page {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
#txpl-gantt-wrap {
  flex: 1;
  min-width: 0;
  transition: all .25s ease;
}
#txpl-ai-panel {
  width: 340px;
  flex-shrink: 0;
  height: calc(100vh - 60px);
  display: none;
  flex-direction: column;
  background: #fff;
  border-left: 1px solid #ede9f7;
  box-shadow: -4px 0 20px rgba(23,1,76,.06);
}
#txpl-ai-panel.show { display: flex; }

.txpl-ai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #17014c;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
#txpl-ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.txpl-ai-welcome {
  text-align: center;
  padding: 20px 8px;
  color: #555;
}
.txpl-ai-suggestions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}
.txpl-ai-suggestion {
  background: #f5f3fa;
  border: 1px solid #e0d9f0;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: #17014c;
  cursor: pointer;
  text-align: left;
  transition: background .1s;
}
.txpl-ai-suggestion:hover { background: #ede9f7; }

.txpl-ai-msg {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.txpl-ai-msg-user { flex-direction: row-reverse; }
.txpl-ai-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f0ebff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.txpl-ai-msg-user .txpl-ai-avatar { background: #e8f5e9; }
.txpl-ai-bubble {
  background: #f5f3fa;
  border-radius: 12px 12px 12px 3px;
  padding: 9px 12px;
  font-size: 12px;
  line-height: 1.6;
  color: #1a1a2e;
  max-width: 240px;
  word-break: break-word;
}
.txpl-ai-msg-user .txpl-ai-bubble {
  background: #17014c;
  color: #fff;
  border-radius: 12px 12px 3px 12px;
}

/* Typing indicator */
.txpl-ai-typing-bubble {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 14px;
}
.txpl-ai-typing-bubble span {
  width: 6px;
  height: 6px;
  background: #17014c;
  border-radius: 50%;
  display: inline-block;
  animation: txpl-ai-bounce .9s infinite;
}
.txpl-ai-typing-bubble span:nth-child(2) { animation-delay: .15s; }
.txpl-ai-typing-bubble span:nth-child(3) { animation-delay: .3s; }
@keyframes txpl-ai-bounce {
  0%,60%,100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

#txpl-ai-input-wrap {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-top: 1px solid #ede9f7;
  background: #faf9fc;
  flex-shrink: 0;
}
#txpl-ai-input {
  flex: 1;
  border: 1px solid #e0d9f0;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  font-family: inherit;
  resize: none;
  color: #17014c;
  line-height: 1.5;
}
#txpl-ai-input:focus { outline: none; border-color: #17014c; }
#txpl-ai-send {
  width: 36px;
  height: 36px;
  background: #17014c;
  color: #52d048;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
  align-self: flex-end;
  transition: background .15s;
}
#txpl-ai-send:hover { background: #2d0a8f; }
#txpl-ai-send:disabled { background: #ccc; color: #fff; cursor: not-allowed; }

/* Dashboard kaarten klikbaar */
.txpl-dash-card-clickable:hover {
  box-shadow: 0 6px 20px rgba(23,1,76,.14);
  transform: translateY(-3px);
}
.txpl-dash-card-clickable:active {
  transform: translateY(-1px);
}

/* ===== CONSULTANTS OVERZICHT ===== */
.txpl-con-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.txpl-con-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(23,1,76,.08);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .15s, transform .12s;
}
.txpl-con-card:hover {
  box-shadow: 0 6px 24px rgba(23,1,76,.14);
  transform: translateY(-3px);
}
.txpl-con-card-top {
  padding: 20px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.txpl-con-initials-lg {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
  flex-shrink: 0;
}
.txpl-con-card-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}
.txpl-con-card-email {
  font-size: 11px;
  margin-top: 2px;
}
.txpl-con-card-body {
  padding: 14px 18px 16px;
}
.txpl-con-card-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.txpl-con-stat {
  text-align: center;
}
.txpl-con-stat-val {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: #17014c;
  line-height: 1.1;
}
.txpl-con-stat-lbl {
  display: block;
  font-size: 9px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-top: 2px;
  white-space: nowrap;
}
.txpl-con-card-footer {
  margin-top: 12px;
  font-size: 11px;
  color: #aaa;
  text-align: right;
}

/* Consultant detail header */
.txpl-con-detail-hdr {
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.txpl-con-detail-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

/* ===== HEALTH SCORE ===== */
.txpl-health-badge {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0,0,0,.04);
}
.txpl-dash-kpis {
  grid-template-columns: repeat(5, 1fr);
}

/* Client notify modal */
#txpl-client-notify-modal .txpl-modal { animation: txpl-fadein .2s ease; }

/* ===== CAPACITEITSPLANNING CHART (FEATURE 7) ===== */
.txpl-cap-chart-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 500px;
}
.txpl-cap-chart-week-hdr,
.txpl-cap-chart-row {
  display: flex;
  align-items: stretch;
  gap: 3px;
}
.txpl-cap-chart-name-col {
  width: 110px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px;
}
.txpl-cap-chart-name {
  font-size: 11px;
  font-weight: 600;
  color: #17014c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.txpl-cap-chart-week-cell {
  flex: 1;
  min-width: 52px;
  text-align: center;
  font-size: 10px;
  color: #888;
  font-weight: 600;
}
.txpl-cap-chart-week-cell.txpl-cap-chart-current {
  color: #17014c;
  font-weight: 800;
}
.txpl-cap-chart-total-col {
  width: 48px;
  flex-shrink: 0;
  text-align: center;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.txpl-cap-bar-wrap {
  height: 42px;
  background: #f0edf8;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin: 2px 0;
}
.txpl-cap-bar-fill {
  width: 100%;
  min-height: 0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: height .3s ease;
}
.txpl-cap-bar-label {
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}
.txpl-cap-legend {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.txpl-cap-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #555;
}
.txpl-cap-legend-item span {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
  flex-shrink: 0;
}

/* ===== ONBOARDING CHECKLIST TRACKER ===== */
.txpl-cl-ring-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.txpl-cl-warn-banner {
  background: #fff5f5;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 10px 16px;
  margin: 0 20px 16px;
  font-size: 12px;
  color: #7f1d1d;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.txpl-dash-kpis {
  grid-template-columns: repeat(6, 1fr);
}

/* ===== ROADMAP VIEW ===== */
.txpl-view-switch {
  display: flex;
  border: 1px solid #e0e0ec;
  border-radius: 8px;
  overflow: hidden;
  margin-right: 0;
  align-self: stretch;
}
.txpl-view-btn {
  background: #fff;
  border: none;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: background .12s, color .12s;
  white-space: nowrap;
  border-right: 1px solid #e0e0ec;
  line-height: 1;
}
.txpl-view-btn:last-child { border-right: none; }
.txpl-view-btn:hover { background: #f5f3fa; color: #17014c; }
.txpl-view-btn.active { background: #17014c; color: #52d048; }

#txpl-roadmap-wrap {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  padding: 0 16px 24px;
}
.txpl-rm-container {
  min-width: 700px;
}
.txpl-rm-header {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 2px solid #e0d9f0;
}
.txpl-rm-label-hdr {
  width: 180px;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 8px 10px;
}
.txpl-rm-months-hdr {
  flex: 1;
  position: relative;
  height: 36px;
}
.txpl-rm-month {
  position: absolute;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: #888;
  border-left: 1px solid #f0edf8;
  white-space: nowrap;
  overflow: hidden;
}
.txpl-rm-rows {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0;
}
.txpl-rm-row {
  display: flex;
  align-items: center;
  cursor: pointer;
  border-radius: 6px;
  transition: background .1s;
  min-height: 52px;
}
.txpl-rm-row:hover { background: #faf8ff; }
.txpl-rm-label {
  width: 180px;
  flex-shrink: 0;
  padding: 6px 10px;
}
.txpl-rm-proj-name {
  font-size: 12px;
  font-weight: 700;
  color: #17014c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
  display: block;
}
.txpl-rm-timeline {
  flex: 1;
  height: 52px;
  position: relative;
  border-left: 1px solid #f0edf8;
}
.txpl-rm-today {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #52d048;
  z-index: 4;
  pointer-events: none;
}
.txpl-rm-today::before {
  content: '';
  position: absolute;
  top: 0;
  left: -3px;
  width: 8px;
  height: 8px;
  background: #52d048;
  border-radius: 50%;
}
.txpl-rm-span-bar {
  position: absolute;
  top: 14px;
  height: 10px;
  border-radius: 5px;
  opacity: 0.25;
  z-index: 1;
}
.txpl-rm-bar-block {
  position: absolute;
  top: 10px;
  height: 18px;
  border-radius: 4px;
  z-index: 2;
  opacity: 0.85;
  transition: opacity .1s;
}
.txpl-rm-bar-block:hover { opacity: 1; z-index: 5; }
.txpl-rm-milestone-flag {
  position: absolute;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  color: #fff;
  z-index: 3;
  transform: translateX(-50%);
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  cursor: default;
}
.txpl-rm-golive-flag {
  position: absolute;
  top: 2px;
  font-size: 16px;
  z-index: 4;
  transform: translateX(-50%);
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.2));
}
.txpl-rm-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 0 4px 180px;
  border-top: 1px solid #f0edf8;
  margin-top: 8px;
}
.txpl-rm-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: #888;
}
.txpl-rm-legend-item span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

/* ===== TEMPLATES ===== */
.txpl-templates-wrap {
  display: flex;
  height: calc(100vh - 60px);
  overflow: hidden;
}
.txpl-templates-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: #faf9fc;
  border-right: 1px solid #ede9f7;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.txpl-tpl-sb-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #17014c;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 1px solid #ede9f7;
  position: sticky;
  top: 0;
  background: #faf9fc;
  z-index: 1;
}
.txpl-tpl-add-cat {
  width: 24px;
  height: 24px;
  background: #17014c;
  color: #52d048;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}
.txpl-tpl-add-cat:hover { background: #2d0a8f; }
.txpl-tpl-cat-item {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid #f5f3fa;
  transition: background .1s;
  gap: 6px;
}
.txpl-tpl-cat-item:hover { background: #ede9f7; }
.txpl-tpl-cat-item.active {
  background: #17014c;
  color: #fff;
}
.txpl-tpl-cat-item.active .txpl-tpl-cat-count { background: rgba(255,255,255,.2); color: #fff; }
.txpl-tpl-cat-item.active .txpl-tpl-del-cat { color: rgba(255,255,255,.5) !important; }
.txpl-tpl-cat-name { flex: 1; font-size: 13px; font-weight: 600; }
.txpl-tpl-cat-count {
  font-size: 10px;
  font-weight: 700;
  background: #ede9f7;
  color: #17014c;
  border-radius: 10px;
  padding: 1px 7px;
  flex-shrink: 0;
}
.txpl-tpl-empty-sb {
  padding: 20px 16px;
  font-size: 12px;
  color: #aaa;
  line-height: 1.6;
}

/* Main panel */
.txpl-templates-main {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}
.txpl-tpl-main-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}
.txpl-tpl-main-title {
  font-size: 20px;
  font-weight: 800;
  color: #17014c;
  margin: 0 0 2px;
}
.txpl-tpl-main-sub {
  font-size: 12px;
  color: #aaa;
}
.txpl-tpl-upload-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #17014c;
  color: #52d048;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.txpl-tpl-upload-btn:hover { background: #2d0a8f; }
.txpl-tpl-empty-main {
  padding: 40px 20px;
  text-align: center;
  color: #aaa;
  font-size: 14px;
  line-height: 1.7;
}

/* Template grid */
.txpl-tpl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.txpl-tpl-card {
  background: #fff;
  border: 1px solid #ede9f7;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow .15s, transform .12s;
}
.txpl-tpl-card:hover {
  box-shadow: 0 4px 16px rgba(23,1,76,.1);
  transform: translateY(-2px);
}
.txpl-tpl-card-icon { font-size: 28px; flex-shrink: 0; line-height: 1; }
.txpl-tpl-card-body { flex: 1; min-width: 0; }
.txpl-tpl-card-name {
  font-size: 13px;
  font-weight: 700;
  color: #17014c;
  margin-bottom: 5px;
  word-break: break-word;
}
.txpl-tpl-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 10px;
  color: #888;
  align-items: center;
}
.txpl-tpl-card-ext {
  background: #f0edf8;
  color: #7c3aed;
  border-radius: 3px;
  padding: 1px 5px;
  font-weight: 700;
  font-size: 9px;
}
.txpl-tpl-card-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
  align-items: flex-end;
}
.txpl-tpl-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background .1s;
}
.txpl-tpl-dl-btn:hover { background: #dcfce7; }
.txpl-tpl-del-btn {
  background: none;
  border: none;
  color: #ddd;
  cursor: pointer;
  font-size: 14px;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color .1s;
}
.txpl-tpl-del-btn:hover { color: #ef4444; background: #fff5f5; }

/* Category reorder arrows */
.txpl-tpl-cat-arrows {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-left: 4px;
}
.txpl-tpl-move-cat {
  background: none;
  border: none;
  color: #bbb;
  cursor: pointer;
  font-size: 10px;
  padding: 0 2px;
  line-height: 1.1;
  transition: color .1s;
}
.txpl-tpl-move-cat:hover:not([disabled]) { color: #17014c; }
.txpl-tpl-move-cat[disabled] { opacity: .25; cursor: default; }
.txpl-tpl-cat-item.active .txpl-tpl-move-cat { color: rgba(255,255,255,.5); }
.txpl-tpl-cat-item.active .txpl-tpl-move-cat:hover:not([disabled]) { color: #fff; }

/* ===== DISC PROFIEL ===== */
.txpl-disc-wrap { padding: 0; height: 100%; overflow: hidden; }
.txpl-disc-layout { display: flex; height: 100%; gap: 0; }
.txpl-disc-left { width: 340px; flex-shrink: 0; border-right: 1px solid #ede9f7; overflow-y: auto; padding: 20px; background: #faf9fc; }
.txpl-disc-right { flex: 1; overflow-y: auto; padding: 20px 24px; }
.txpl-disc-h2 { font-size: 18px; font-weight: 800; color: #17014c; margin: 0 0 6px; }
.txpl-disc-h3 { font-size: 13px; font-weight: 700; color: #17014c; margin: 0 0 10px; }
.txpl-disc-sub { font-size: 12px; color: #888; line-height: 1.6; margin: 0 0 16px; }
.txpl-disc-section { background: #fff; border: 1px solid #ede9f7; border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.txpl-disc-field { margin-bottom: 14px; }
.txpl-disc-field label { display: block; font-size: 11px; font-weight: 700; color: #17014c; margin-bottom: 5px; text-transform: uppercase; letter-spacing: .04em; }
.txpl-disc-select { width: 100%; padding: 8px 10px; border: 1px solid #e0d9f0; border-radius: 7px; font-size: 13px; color: #17014c; background: #fff; }
.txpl-disc-start-btn { width: 100%; padding: 10px; background: #17014c; color: #52d048; border: none; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .15s; }
.txpl-disc-start-btn:hover { background: #2d0a8f; }
.txpl-disc-assigned-list { display: flex; flex-direction: column; gap: 8px; }
.txpl-disc-assigned-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: #faf9fc; border-radius: 7px; border: 1px solid #ede9f7; }
.txpl-disc-badge { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #fff; flex-shrink: 0; }
.txpl-disc-assigned-name { font-size: 12px; font-weight: 700; color: #17014c; }
.txpl-disc-assigned-client { font-size: 11px; color: #888; }
.txpl-disc-redo-btn { margin-left: auto; background: none; border: 1px solid #e0d9f0; border-radius: 5px; padding: 3px 8px; font-size: 13px; cursor: pointer; color: #888; }
.txpl-disc-redo-btn:hover { color: #17014c; border-color: #17014c; }
.txpl-disc-empty { font-size: 12px; color: #aaa; padding: 8px 0; }

/* Profile cards grid */
.txpl-disc-profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.txpl-disc-profile-card { border: 2px solid; border-radius: 12px; overflow: hidden; }
.txpl-disc-profile-hdr { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.txpl-disc-profile-letter { font-size: 28px; font-weight: 900; color: #fff; line-height: 1; }
.txpl-disc-profile-label { font-size: 16px; font-weight: 700; color: #fff; }
.txpl-disc-profile-body { padding: 14px 16px; }
.txpl-disc-profile-tagline { font-size: 12px; font-weight: 700; color: #17014c; margin-bottom: 8px; }
.txpl-disc-profile-desc { font-size: 12px; color: #555; line-height: 1.6; margin-bottom: 8px; }
.txpl-disc-profile-tips { font-size: 11px; color: #666; }
.txpl-disc-profile-tips ul { margin: 5px 0 0 14px; padding: 0; }
.txpl-disc-profile-tips li { margin-bottom: 3px; }

/* Quiz */
.txpl-disc-quiz-wrap { max-width: 700px; margin: 0 auto; padding: 20px; }
.txpl-disc-quiz-hdr { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid #ede9f7; flex-wrap: wrap; }
.txpl-disc-quiz-title { font-size: 15px; font-weight: 700; color: #17014c; margin-bottom: 6px; }
.txpl-disc-progress-wrap { height: 6px; background: #f0edf8; border-radius: 3px; overflow: hidden; width: 200px; }
.txpl-disc-progress-bar { height: 100%; background: #52d048; border-radius: 3px; transition: width .3s; }
.txpl-disc-progress-label { font-size: 11px; color: #aaa; margin-top: 3px; }
.txpl-disc-back-btn { background: #f5f3fa; border: 1px solid #e0d9f0; border-radius: 7px; padding: 7px 14px; font-size: 12px; color: #17014c; cursor: pointer; white-space: nowrap; }
.txpl-disc-submit-btn { background: #17014c; color: #52d048; border: none; border-radius: 8px; padding: 9px 18px; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; margin-left: auto; }
.txpl-disc-submit-btn.disabled { opacity: .4; cursor: not-allowed; }
.txpl-disc-questions { display: flex; flex-direction: column; gap: 20px; }
.txpl-disc-question { background: #fff; border: 2px solid #ede9f7; border-radius: 10px; padding: 16px; transition: border-color .2s; }
.txpl-disc-question.answered { border-color: #52d048; }
.txpl-disc-q-num { font-size: 10px; font-weight: 700; color: #aaa; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.txpl-disc-q-text { font-size: 14px; font-weight: 700; color: #17014c; margin-bottom: 12px; }
.txpl-disc-q-opts { display: flex; flex-direction: column; gap: 8px; }
.txpl-disc-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 2px solid #ede9f7; border-radius: 8px; cursor: pointer; transition: all .15s; }
.txpl-disc-opt:hover { border-color: #c4b5fd; background: #faf8ff; }
.txpl-disc-opt.selected { font-weight: 600; }
.txpl-disc-opt-dot { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: #fff; flex-shrink: 0; }
.txpl-disc-opt-text { font-size: 13px; color: #555; }

/* Result */
.txpl-disc-result-wrap { max-width: 640px; margin: 0 auto; padding: 20px; }
.txpl-disc-result-card { border: 2px solid; border-radius: 12px; overflow: hidden; margin: 16px 0; }
.txpl-disc-result-hdr { display: flex; align-items: center; gap: 16px; padding: 20px 24px; }
.txpl-disc-result-letter { font-size: 48px; font-weight: 900; color: #fff; line-height: 1; }
.txpl-disc-result-label { font-size: 22px; font-weight: 800; color: #fff; }
.txpl-disc-result-tagline { font-size: 13px; color: rgba(255,255,255,.85); margin-top: 3px; }
.txpl-disc-result-body { padding: 20px 24px; }
.txpl-disc-result-body h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #17014c; margin: 14px 0 6px; }
.txpl-disc-result-body p, .txpl-disc-result-body ul { font-size: 13px; color: #555; line-height: 1.7; margin: 0 0 0 14px; }
.txpl-disc-score-bars { display: flex; flex-direction: column; gap: 6px; }
.txpl-disc-score-row { display: flex; align-items: center; gap: 10px; }
.txpl-disc-score-key { font-size: 13px; font-weight: 800; width: 16px; flex-shrink: 0; }
.txpl-disc-score-bar-wrap { flex: 1; height: 10px; background: #f0edf8; border-radius: 5px; overflow: hidden; }
.txpl-disc-score-bar-fill { height: 100%; border-radius: 5px; transition: width .5s ease; }
.txpl-disc-score-pct { font-size: 11px; font-weight: 700; color: #888; width: 36px; text-align: right; }
.txpl-disc-save-wrap { background: #fff; border: 1px solid #ede9f7; border-radius: 10px; padding: 16px; }
.txpl-disc-save-info { font-size: 13px; color: #555; margin-bottom: 12px; }
.txpl-disc-save-btns { display: flex; flex-direction: column; gap: 8px; }
.txpl-disc-assign-btn { padding: 10px 16px; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; text-align: left; transition: opacity .15s; }
.txpl-disc-assign-btn.recommended { box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.txpl-disc-assign-btn.saved { opacity: .6; }

/* ===== RAPPORTAGE ===== */
.txpl-rpt-wrap { display: flex; height: calc(100vh - 60px); overflow: hidden; }
.txpl-rpt-sidebar { width: 240px; flex-shrink: 0; background: #faf9fc; border-right: 1px solid #ede9f7; overflow-y: auto; display: flex; flex-direction: column; }
.txpl-rpt-sb-hdr { padding: 14px 16px 8px; font-size: 11px; font-weight: 700; color: #17014c; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid #ede9f7; flex-shrink: 0; }
.txpl-rpt-sb-search { padding: 8px 12px; border-bottom: 1px solid #ede9f7; flex-shrink: 0; }
.txpl-rpt-group-hdr { padding: 8px 14px 4px; font-size: 10px; font-weight: 700; color: #aaa; text-transform: uppercase; letter-spacing: .05em; }
.txpl-rpt-proj-item { display: flex; align-items: center; gap: 8px; padding: 9px 14px; cursor: pointer; border-bottom: 1px solid #f5f3fa; transition: background .1s; }
.txpl-rpt-proj-item:hover { background: #ede9f7; }
.txpl-rpt-proj-item.active { background: #17014c; }
.txpl-rpt-proj-item.active .txpl-rpt-proj-name { color: #fff; }
.txpl-rpt-proj-item.active .txpl-rpt-proj-health { color: #52d048 !important; }
.txpl-rpt-proj-dot { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.txpl-rpt-proj-name { flex: 1; font-size: 12px; font-weight: 600; color: #17014c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.txpl-rpt-proj-health { font-size: 10px; font-weight: 700; flex-shrink: 0; }
.txpl-rpt-main { flex: 1; overflow-y: auto; background: #f7f6fb; }
.txpl-rpt-empty { padding: 60px 20px; text-align: center; color: #aaa; font-size: 14px; line-height: 1.7; }
.txpl-rpt-main-inner { max-width: 800px; margin: 0 auto; padding: 20px 24px; }
.txpl-rpt-main-hdr { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; gap: 16px; }
.txpl-rpt-title { font-size: 22px; font-weight: 800; color: #17014c; margin: 0 0 4px; }
.txpl-rpt-sub { font-size: 12px; color: #888; }
.txpl-rpt-generate-btn { background: #17014c; color: #52d048; border: none; border-radius: 8px; padding: 10px 20px; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: background .15s; }
.txpl-rpt-generate-btn:hover { background: #2d0a8f; }
.txpl-rpt-sections { background: #fff; border: 1px solid #ede9f7; border-radius: 10px; padding: 14px 16px; margin-bottom: 20px; }
.txpl-rpt-sections-hdr { font-size: 11px; font-weight: 700; color: #17014c; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
.txpl-rpt-section-toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.txpl-rpt-toggle { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1.5px solid #e0d9f0; border-radius: 20px; cursor: pointer; font-size: 12px; font-weight: 600; color: #888; transition: all .15s; user-select: none; }
.txpl-rpt-toggle.on { background: #17014c; border-color: #17014c; color: #fff; }
.txpl-rpt-toggle-icon { font-size: 13px; }
.txpl-rpt-toggle-check { width: 14px; text-align: center; }
.txpl-rpt-preview { background: #fff; border: 1px solid #ede9f7; border-radius: 10px; overflow: hidden; }
.rpt { font-family: Arial, sans-serif; color: #1a1a2e; }
.rpt-cover { background: #17014c; color: #fff; padding: 24px; }
.rpt-co { color: #52d048; font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.rpt-proj { font-size: 22px; font-weight: 800; margin: 0 0 4px; }
.rpt-meta { font-size: 12px; opacity: .8; }
.rpt-sec { margin: 0 0 1px; border-top: 1px solid #ede9f7; }
.rpt-sec:first-of-type { border-top: none; }
.rpt-sec-hdr { background: #f5f3fa; padding: 9px 16px; font-size: 11px; font-weight: 700; color: #17014c; text-transform: uppercase; letter-spacing: .05em; }
.rpt-sec-body { padding: 14px 16px; }
.rpt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ===== CONSULTANT ROOSTER ===== */
.txpl-rst-wrap { display: flex; flex-direction: column; height: 100%; }
.txpl-rst-toolbar { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid #e8e8f0; background: #fafafa; flex-shrink: 0; }
.txpl-rst-week-label { font-size: 13px; font-weight: 700; color: #17014c; }
.txpl-rst-legend { display: flex; gap: 14px; align-items: center; padding: 6px 16px; border-bottom: 1px solid #f0edf8; background: #faf9fc; font-size: 10px; flex-shrink: 0; flex-wrap: wrap; }
.txpl-rst-legend-item { display: flex; align-items: center; gap: 5px; color: #666; }
.txpl-rst-legend-item span { width: 10px; height: 10px; border-radius: 2px; display: inline-block; flex-shrink: 0; }
.txpl-rst-scroll { flex: 1; overflow: auto; }
.txpl-rst-table { width: 100%; border-collapse: collapse; min-width: 700px; }
.txpl-rst-th { padding: 8px 4px; text-align: center; background: #fff; border-bottom: 2px solid #ede9f7; font-size: 11px; font-weight: 700; color: #17014c; position: sticky; top: 0; z-index: 2; white-space: nowrap; }
.txpl-rst-th.txpl-rst-name-col { text-align: left; padding-left: 14px; width: 140px; }
.txpl-rst-today-hdr { background: #f0fdf4 !important; color: #16a34a !important; }
.txpl-rst-day-name { font-size: 12px; font-weight: 800; }
.txpl-rst-day-date { font-size: 10px; font-weight: 400; color: #888; }
.txpl-rst-day-date.today { color: #16a34a; font-weight: 700; }
.txpl-rst-slot-hdr { font-size: 9px; font-weight: 600; color: #bbb; padding: 3px 2px; text-align: center; background: #fff; border-bottom: 1px solid #f0edf8; position: sticky; top: 36px; z-index: 2; }
.txpl-rst-slot-row th { top: 36px; }
.txpl-rst-row { border-bottom: 1px solid #f5f3fa; }
.txpl-rst-row:hover { background: #faf8ff; }
.txpl-rst-td { padding: 0; vertical-align: middle; }
.txpl-rst-name-col { padding: 8px 10px 8px 14px; }
.txpl-rst-con-wrap { display: flex; align-items: center; gap: 8px; }
.txpl-rst-con-info { min-width: 0; }
.txpl-rst-con-name { font-size: 12px; font-weight: 700; color: #17014c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.txpl-rst-con-busy { font-size: 10px; font-weight: 700; }
.txpl-rst-cell { padding: 3px 2px; min-width: 60px; height: 44px; vertical-align: top; border-left: 1px solid #f0edf8; }
.txpl-rst-cell.txpl-rst-today-col { background: #f9fefb; }
.txpl-rst-cell.txpl-rst-empty { background: repeating-linear-gradient(135deg, transparent, transparent 4px, rgba(0,0,0,.02) 4px, rgba(0,0,0,.02) 8px); }
.txpl-rst-block { border-radius: 4px; padding: 3px 5px; margin: 2px 1px; font-size: 10px; font-weight: 600; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .1s; }
.txpl-rst-block:hover { opacity: .85; }
.txpl-rst-block-text { display: block; overflow: hidden; text-overflow: ellipsis; }

/* Stats row */
.txpl-rst-stats { display: flex; gap: 0; border-top: 2px solid #ede9f7; background: #faf9fc; flex-shrink: 0; }
.txpl-rst-stat-day { flex: 1; text-align: center; padding: 8px 4px; border-right: 1px solid #ede9f7; }
.txpl-rst-stat-day:last-child { border-right: none; }
.txpl-rst-stat-label { font-size: 10px; font-weight: 700; color: #888; text-transform: uppercase; }
.txpl-rst-stat-val { font-size: 16px; font-weight: 800; }
.txpl-rst-stat-sub { font-size: 9px; color: #aaa; }

/* ===== NOTIFICATIE-CENTRUM ===== */
#txpl-notif-bell {
  position: relative;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background .15s;
  margin-top: auto;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 12px;
}
#txpl-notif-bell:hover { background: rgba(255,255,255,.1); }
.txpl-notif-icon { font-size: 18px; }
.txpl-notif-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}
#txpl-notif-panel {
  position: fixed;
  z-index: 9999;
  width: 360px;
  max-height: 480px;
  background: #fff;
  border: 1px solid #ede9f7;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(23,1,76,.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.txpl-notif-panel-hdr {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid #ede9f7;
  font-size: 13px;
  font-weight: 700;
  color: #17014c;
  flex-shrink: 0;
}
.txpl-notif-panel-count {
  background: #17014c;
  color: #52d048;
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 700;
}
.txpl-notif-panel-body {
  overflow-y: auto;
  flex: 1;
}
.txpl-notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #f5f3fa;
  cursor: pointer;
  transition: opacity .1s;
}
.txpl-notif-item:hover { opacity: .85; }
.txpl-notif-item-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.txpl-notif-item-body { flex: 1; min-width: 0; }
.txpl-notif-item-title { font-size: 12px; font-weight: 700; margin-bottom: 2px; }
.txpl-notif-item-desc { font-size: 11px; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.txpl-notif-item-sev { font-size: 9px; font-weight: 700; border-radius: 4px; padding: 2px 6px; white-space: nowrap; flex-shrink: 0; }
.txpl-notif-empty { padding: 20px; text-align: center; color: #aaa; font-size: 13px; }

/* ===== CONSULTANT WERKROOSTER ===== */
.txpl-sched-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}
.txpl-sched-day {}
.txpl-sched-day-name {
  font-size: 10px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 5px;
  text-align: center;
}
.txpl-sched-slots {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.txpl-sched-slot {
  padding: 5px 4px;
  border: 1.5px solid #e0d9f0;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
  color: #888;
  transition: all .12s;
  text-align: center;
}
.txpl-sched-slot:hover { border-color: #17014c; color: #17014c; }
.txpl-sched-slot.selected { font-weight: 700; }

/* Rooster unavailable cell */
.txpl-rst-cell.txpl-rst-unavail {
  background: repeating-linear-gradient(
    135deg,
    #f5f3fa,
    #f5f3fa 4px,
    #ede9f7 4px,
    #ede9f7 8px
  ) !important;
  cursor: not-allowed;
}
