:root {
  --rsp-navy: #10233f;
  --rsp-navy-2: #18385f;
  --rsp-blue: #2d6cdf;
  --rsp-blue-soft: #eaf1ff;
  --rsp-cyan: #4ab7cf;
  --rsp-bg: #f3f6fa;
  --rsp-card: #ffffff;
  --rsp-text: #172033;
  --rsp-muted: #68758a;
  --rsp-line: #dfe6ef;
  --rsp-green: #2f9e67;
  --rsp-green-soft: #dff5e9;
  --rsp-red: #d94a52;
  --rsp-red-soft: #fde6e8;
  --rsp-purple: #8058c9;
  --rsp-purple-soft: #eee7fb;
  --rsp-yellow: #d59b22;
  --rsp-shadow: 0 16px 45px rgba(20, 42, 75, .10);
  --rsp-radius: 22px;
  --rsp-radius-sm: 13px;
}

.rsp-dashboard,
.rsp-login-shell {
  box-sizing: border-box;
  font-family: Montserrat, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--rsp-text);
}

.rsp-dashboard *,
.rsp-dashboard *::before,
.rsp-dashboard *::after,
.rsp-login-shell *,
.rsp-login-shell *::before,
.rsp-login-shell *::after { box-sizing: border-box; }

.rsp-dashboard button,
.rsp-dashboard input,
.rsp-dashboard select,
.rsp-dashboard textarea,
.rsp-login-shell input { font: inherit; }

.rsp-dashboard button { cursor: pointer; }

.rsp-dashboard {
  width: min(1640px, calc(100vw - 28px));
  min-height: calc(100vh - 56px);
  margin: 28px 0 28px 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  background: var(--rsp-bg);
  border: 1px solid rgba(16, 35, 63, .08);
  border-radius: 30px;
  box-shadow: 0 30px 80px rgba(16, 35, 63, .16);
  overflow: hidden;
}

.rsp-sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 28px 20px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 5%, rgba(74, 183, 207, .24), transparent 26%),
    linear-gradient(165deg, #10233f 0%, #17375c 58%, #10233f 100%);
}

.rsp-sidebar::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: 90px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
}

.rsp-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 8px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.rsp-brand-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .2);
}
.rsp-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rsp-brand strong,
.rsp-brand span { display: block; }
.rsp-brand strong { font-size: 17px; letter-spacing: .01em; }
.rsp-brand span { margin-top: 2px; color: rgba(255,255,255,.68); font-size: 13px; }

.rsp-nav { display: grid; gap: 7px; margin-top: 28px; position: relative; z-index: 1; }

.rsp-nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  border: 0;
  border-radius: 13px;
  color: rgba(255,255,255,.76);
  background: transparent;
  text-align: left;
  font-size: 13px;
  font-weight: 650;
  transition: .2s ease;
}

.rsp-nav-item:hover { color: #fff; background: rgba(255,255,255,.08); transform: translateX(2px); }
.rsp-nav-item.is-active { color: var(--rsp-navy); background: #fff; box-shadow: 0 10px 28px rgba(0,0,0,.14); }
.rsp-nav-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.1); font-size: 15px; }
.rsp-nav-item.is-active .rsp-nav-icon { background: var(--rsp-blue-soft); color: var(--rsp-blue); }

.rsp-sidebar-footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 18px 12px 4px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 12px;
}
.rsp-sidebar-footer span, .rsp-sidebar-footer strong, .rsp-sidebar-footer a { display: block; }
.rsp-sidebar-footer span { color: rgba(255,255,255,.55); }
.rsp-sidebar-footer strong { margin: 4px 0 10px; font-size: 14px; }
.rsp-sidebar-footer a { color: #c7edf6; text-decoration: none; }

.rsp-main { min-width: 0; padding: 31px; }

.rsp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-bottom: 25px;
}
.rsp-topbar h1 { margin: 3px 0 0; font-size: clamp(23px, 2vw, 33px); line-height: 1.12; letter-spacing: -.035em; }
.rsp-eyebrow { display: block; color: var(--rsp-blue); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.rsp-mobile-menu { display: none; width: 42px; height: 42px; border: 1px solid var(--rsp-line); border-radius: 12px; background: #fff; color: var(--rsp-navy); }

.rsp-primary-button,
.rsp-secondary-button,
.rsp-danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 750;
  transition: .2s ease;
}
.rsp-primary-button { border: 1px solid var(--rsp-blue); color: #fff; background: linear-gradient(135deg, var(--rsp-blue), #2457b7); box-shadow: 0 9px 22px rgba(45,108,223,.22); }
.rsp-primary-button:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 25px rgba(45,108,223,.28); }
.rsp-secondary-button { border: 1px solid var(--rsp-line); color: var(--rsp-navy); background: #fff; }
.rsp-secondary-button:hover { border-color: #b9c7d8; background: #f8fafc; }
.rsp-danger-button { border: 1px solid #f2c5c8; color: var(--rsp-red); background: #fff5f6; }
.rsp-primary-button:disabled { opacity: .6; cursor: progress; transform: none; }

.rsp-section { display: none; animation: rspFade .25s ease; }
.rsp-section.is-active { display: block; }
@keyframes rspFade { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.rsp-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: end;
  gap: 28px;
  padding: 32px;
  border-radius: var(--rsp-radius);
  color: #fff;
  background:
    radial-gradient(circle at 82% 10%, rgba(74,183,207,.5), transparent 27%),
    linear-gradient(130deg, #10233f 0%, #1b4777 72%, #2a6d94 100%);
  box-shadow: var(--rsp-shadow);
}
.rsp-hero::after { content: ""; position: absolute; right: -55px; top: -65px; width: 230px; height: 230px; border: 35px solid rgba(255,255,255,.05); border-radius: 50%; }
.rsp-hero > * { position: relative; z-index: 1; }
.rsp-hero .rsp-eyebrow { color: #8be2f4; }
.rsp-hero h2 { max-width: 700px; margin: 7px 0 10px; font-size: clamp(28px, 3.1vw, 50px); line-height: 1.05; letter-spacing: -.045em; }
.rsp-hero p { max-width: 700px; margin: 0; color: rgba(255,255,255,.76); font-size: 14px; line-height: 1.7; }
.rsp-global-search label { display: block; margin-bottom: 8px; color: rgba(255,255,255,.8); font-size: 11px; font-weight: 700; }

.rsp-search-wrap {
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid var(--rsp-line);
  border-radius: 12px;
  background: #fff;
}
.rsp-hero .rsp-search-wrap { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.96); }
.rsp-search-wrap span { color: #8a96a8; }
.rsp-search-wrap input { width: 100%; min-width: 0; height: 44px; padding: 0; border: 0 !important; outline: 0; color: var(--rsp-text); background: transparent !important; box-shadow: none !important; }

.rsp-stats-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px; margin: 18px 0; }
.rsp-stat-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--rsp-line);
  border-radius: 17px;
  text-align: left;
  color: var(--rsp-text);
  background: #fff;
  box-shadow: 0 8px 23px rgba(24,56,95,.05);
  transition: .2s ease;
}
.rsp-stat-card:hover { transform: translateY(-2px); border-color: #bac8dc; box-shadow: 0 12px 27px rgba(24,56,95,.09); }
.rsp-stat-card span, .rsp-stat-card strong, .rsp-stat-card small { display: block; }
.rsp-stat-card span { color: var(--rsp-muted); font-size: 11px; font-weight: 650; }
.rsp-stat-card strong { margin: 7px 0 2px; color: var(--rsp-navy); font-size: 28px; line-height: 1; }
.rsp-stat-card small { color: #9aa4b3; font-size: 10px; }

.rsp-grid { display: grid; gap: 18px; }
.rsp-grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.rsp-grid-2-1 { grid-template-columns: minmax(0, 2fr) minmax(290px, 1fr); }

.rsp-card,
.rsp-form-card {
  border: 1px solid var(--rsp-line);
  border-radius: var(--rsp-radius);
  background: var(--rsp-card);
  box-shadow: 0 9px 27px rgba(24,56,95,.055);
}
.rsp-card { padding: 22px; }
.rsp-card-heading, .rsp-form-card-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.rsp-card h3, .rsp-form-card h3 { margin: 4px 0 0; font-size: 20px; letter-spacing: -.025em; }
.rsp-accent-card { color: #fff; background: linear-gradient(150deg, #2d6cdf, #193d75); border-color: transparent; }
.rsp-accent-card .rsp-eyebrow { color: #a9eaf7; }
.rsp-accent-card h3 { color: #fff; }
.rsp-progress-month { margin: 22px 0 0; color: rgba(255,255,255,.7); font-size: 13px; }
.rsp-progress-number { display: flex; align-items: end; gap: 10px; margin: 12px 0 23px; }
.rsp-progress-number strong { font-size: 51px; line-height: .9; }
.rsp-progress-number span { max-width: 90px; color: rgba(255,255,255,.72); font-size: 11px; line-height: 1.35; }
.rsp-mini-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.rsp-mini-metrics div { padding: 11px; border-radius: 12px; background: rgba(255,255,255,.1); }
.rsp-mini-metrics strong, .rsp-mini-metrics span { display: block; }
.rsp-mini-metrics strong { font-size: 17px; }
.rsp-mini-metrics span { margin-top: 3px; color: rgba(255,255,255,.64); font-size: 9px; }

.rsp-activity-list { display: grid; gap: 7px; }
.rsp-activity-item {
  width: 100%;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 10px 7px;
  border: 0;
  border-bottom: 1px solid #eef2f6;
  text-align: left;
  color: var(--rsp-text);
  background: transparent;
}
.rsp-activity-item:last-child { border-bottom: 0; }
.rsp-activity-item:hover { background: #f7f9fc; }
.rsp-activity-icon { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 11px; color: var(--rsp-blue); background: var(--rsp-blue-soft); font-size: 12px; font-weight: 800; }
.rsp-activity-copy strong, .rsp-activity-copy small { display: block; }
.rsp-activity-copy strong { font-size: 12px; }
.rsp-activity-copy small { margin-top: 3px; color: var(--rsp-muted); font-size: 9px; }

.rsp-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 19px; }
.rsp-section-heading h2 { margin: 5px 0 6px; font-size: clamp(27px, 3vw, 39px); line-height: 1; letter-spacing: -.045em; }
.rsp-section-heading p { max-width: 760px; margin: 0; color: var(--rsp-muted); font-size: 13px; line-height: 1.6; }

.rsp-form-card { margin-bottom: 18px; padding: 23px; border-color: #bed0ea; box-shadow: 0 17px 40px rgba(45,108,223,.09); }
.rsp-form-card[hidden] { display: none !important; }
.rsp-form-card.is-open { animation: rspFormOpen .25s ease; }
@keyframes rspFormOpen { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.rsp-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.rsp-field { min-width: 0; }
.rsp-field-wide { grid-column: 1 / -1; }
.rsp-field label { display: block; margin-bottom: 7px; color: #35435a; font-size: 11px; font-weight: 750; }
.rsp-field input:not([type="file"]),
.rsp-field select,
.rsp-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #ccd6e3;
  border-radius: 11px;
  color: var(--rsp-text);
  background: #fff;
  outline: 0;
  box-shadow: none;
  transition: .16s ease;
}
.rsp-field input:focus, .rsp-field select:focus, .rsp-field textarea:focus, .rsp-rich-editor:focus { border-color: var(--rsp-blue); box-shadow: 0 0 0 3px rgba(45,108,223,.1); }
.rsp-field input[type="file"] { width: 100%; padding: 11px; border: 1px dashed #b8c7da; border-radius: 11px; background: #f7f9fc; }
.rsp-field small { display: block; margin-top: 6px; color: var(--rsp-muted); font-size: 9px; line-height: 1.5; }

.rsp-editor-toolbar { display: flex; flex-wrap: wrap; gap: 5px; padding: 8px; border: 1px solid #ccd6e3; border-bottom: 0; border-radius: 12px 12px 0 0; background: #f6f8fb; }
.rsp-editor-toolbar button { min-width: 33px; height: 30px; padding: 0 9px; border: 1px solid #d8e0e9; border-radius: 7px; color: #35435a; background: #fff; font-size: 10px; }
.rsp-editor-toolbar button:hover, .rsp-editor-toolbar button.is-active { color: #fff; border-color: var(--rsp-blue); background: var(--rsp-blue); }
.rsp-rich-editor,
.rsp-rich-source { min-height: 165px !important; resize: vertical; }
.rsp-rich-editor { overflow: auto; resize: vertical; padding: 13px; border: 1px solid #ccd6e3; border-radius: 0 0 12px 12px; background: #fff; outline: 0; line-height: 1.6; }
.rsp-rich-editor:empty::before { content: attr(data-placeholder); color: #9aa6b6; pointer-events: none; }
.rsp-rich-source { border-radius: 0 0 12px 12px !important; font-family: Consolas, Monaco, monospace !important; font-size: 12px !important; }
.rsp-rich-output { overflow-wrap: anywhere; color: #3b485d; font-size: 12px; line-height: 1.65; }
.rsp-rich-output p:first-child { margin-top: 0; }
.rsp-rich-output p:last-child { margin-bottom: 0; }
.rsp-rich-output a { color: var(--rsp-blue); }
.rsp-rich-output img { max-width: 100%; height: auto; }

.rsp-form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }

.rsp-filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 16px 0; padding: 10px; border: 1px solid var(--rsp-line); border-radius: 15px; background: rgba(255,255,255,.76); }
.rsp-filter-bar .rsp-search-wrap { flex: 1 1 260px; }
.rsp-filter-bar select { min-width: 145px; height: 42px; padding: 0 32px 0 11px; border: 1px solid var(--rsp-line); border-radius: 11px; color: #445167; background: #fff; font-size: 10px; }
.rsp-filter-reset { min-height: 40px; padding: 0 10px; border: 0; color: var(--rsp-blue); background: transparent; font-size: 10px; font-weight: 750; }

.rsp-data-view { min-height: 120px; }
.rsp-table-shell { overflow-x: auto; border: 1px solid var(--rsp-line); border-radius: 17px; background: #fff; box-shadow: 0 8px 24px rgba(24,56,95,.045); }
.rsp-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.rsp-table th { padding: 13px 14px; border-bottom: 1px solid var(--rsp-line); color: #738096; background: #f7f9fc; text-align: left; font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.rsp-table td { max-width: 300px; padding: 14px; border-bottom: 1px solid #edf1f5; vertical-align: top; color: #4b586b; }
.rsp-table tr:last-child td { border-bottom: 0; }
.rsp-table tbody tr:hover { background: #fbfcfe; }
.rsp-table strong { color: var(--rsp-text); }
.rsp-pill { display: inline-flex; align-items: center; min-height: 25px; padding: 4px 9px; border-radius: 999px; color: #285aa7; background: var(--rsp-blue-soft); font-size: 9px; font-weight: 750; white-space: nowrap; }
.rsp-row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.rsp-row-actions button { padding: 5px 8px; border: 1px solid #dbe2eb; border-radius: 8px; color: #536077; background: #fff; font-size: 9px; }
.rsp-row-actions button:hover { color: var(--rsp-blue); border-color: #aebfd6; }
.rsp-row-actions button.is-danger:hover { color: var(--rsp-red); border-color: #efb7bb; background: #fff5f6; }
.rsp-message-details summary { color: var(--rsp-blue); cursor: pointer; font-size: 10px; font-weight: 700; }
.rsp-message-details[open] summary { margin-bottom: 10px; }
.rsp-message-details .rsp-rich-output { min-width: 230px; padding: 11px; border-radius: 10px; background: #f5f8fc; }

.rsp-placement-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px; }
.rsp-placement-card { overflow: hidden; border: 1px solid var(--rsp-line); border-radius: 19px; background: #fff; box-shadow: 0 8px 24px rgba(24,56,95,.055); }
.rsp-placement-image { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #eaf0f6; }
.rsp-placement-image img { width: 100%; height: 100%; object-fit: cover; transition: .3s ease; }
.rsp-placement-card:hover .rsp-placement-image img { transform: scale(1.025); }
.rsp-no-image { display: grid; place-items: center; color: #8491a3; background: linear-gradient(135deg, #edf2f7, #dfe8f2); font-size: 11px; }
.rsp-placement-content { padding: 17px; }
.rsp-card-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px; color: var(--rsp-muted); font-size: 9px; }
.rsp-placement-content h3 { margin: 10px 0 3px; font-size: 19px; }
.rsp-placement-type { margin: 0 0 13px; color: var(--rsp-blue); font-size: 11px; font-weight: 750; }
.rsp-placement-content .rsp-row-actions { margin-top: 14px; }

.rsp-important-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; }
.rsp-important-card { padding: 20px; border: 1px solid var(--rsp-line); border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(24,56,95,.045); }
.rsp-important-card h3 { margin: 14px 0 10px; font-size: 20px; }
.rsp-important-card .rsp-row-actions { margin-top: 16px; }

.rsp-planning-actions { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 15px; margin: 15px 0; }
.rsp-planning-actions > :last-child { justify-self: end; }
.rsp-calendar-nav { display: flex; align-items: center; justify-content: center; gap: 14px; }
.rsp-calendar-nav strong { min-width: 170px; text-align: center; text-transform: capitalize; }
.rsp-calendar-nav button { width: 36px; height: 36px; border: 1px solid var(--rsp-line); border-radius: 10px; color: var(--rsp-navy); background: #fff; font-size: 20px; }
.rsp-calendar-legend { display: flex; flex-wrap: wrap; gap: 13px; margin: 12px 0; color: var(--rsp-muted); font-size: 9px; }
.rsp-calendar-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rsp-calendar-legend i { width: 10px; height: 10px; border-radius: 3px; border: 1px solid #d7dee8; }
.rsp-calendar-legend .is-worked { background: var(--rsp-green); border-color: var(--rsp-green); }
.rsp-calendar-legend .is-leave { background: var(--rsp-blue); border-color: var(--rsp-blue); }
.rsp-calendar-legend .is-sick { background: var(--rsp-red); border-color: var(--rsp-red); }
.rsp-calendar-legend .is-special { background: var(--rsp-purple); border-color: var(--rsp-purple); }
.rsp-calendar-card { padding: 15px; }
.rsp-calendar-weekdays, .rsp-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 6px; }
.rsp-calendar-weekdays { margin-bottom: 6px; }
.rsp-calendar-weekdays span { padding: 7px; color: #8490a2; text-align: center; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.rsp-calendar-cell { min-height: 84px; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 9px; border: 1px solid #e3e9f0; border-radius: 12px; color: var(--rsp-text); background: #fff; text-align: left; transition: .15s ease; }
.rsp-calendar-cell:hover { transform: translateY(-1px); border-color: #aebdd1; box-shadow: 0 7px 18px rgba(24,56,95,.08); }
.rsp-calendar-cell.is-empty { border-color: transparent; background: transparent; }
.rsp-calendar-cell .rsp-day-number { font-size: 13px; font-weight: 800; }
.rsp-calendar-cell small { font-size: 8px; font-weight: 700; }
.rsp-calendar-cell em { margin-top: auto; font-size: 8px; font-style: normal; opacity: .74; }
.rsp-calendar-cell.is-worked { color: #195f40; border-color: #b8e4cc; background: var(--rsp-green-soft); }
.rsp-calendar-cell.is-leave { color: #2459a8; border-color: #bfd2f6; background: var(--rsp-blue-soft); }
.rsp-calendar-cell.is-sick { color: #a63037; border-color: #f1c0c4; background: var(--rsp-red-soft); }
.rsp-calendar-cell.is-special { color: #6943ae; border-color: #d9c9f2; background: var(--rsp-purple-soft); }
.rsp-calendar-cell.is-none { background: #fff; }
.rsp-calendar-cell.is-today .rsp-day-number { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--rsp-navy); }
.rsp-calendar-cell.is-selected { outline: 2px solid var(--rsp-blue); outline-offset: 1px; }
.rsp-day-status { display: inline-flex; padding: 7px 11px; margin-bottom: 11px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.rsp-day-status.is-worked { color: #176140; background: var(--rsp-green-soft); }
.rsp-day-status.is-leave { color: #2459a8; background: var(--rsp-blue-soft); }
.rsp-day-status.is-sick { color: #a63037; background: var(--rsp-red-soft); }
.rsp-day-status.is-special { color: #6943ae; background: var(--rsp-purple-soft); }
.rsp-day-status.is-none { color: #667286; background: #edf1f5; }
.rsp-day-detail > p { color: var(--rsp-muted); font-size: 12px; line-height: 1.6; }
.rsp-day-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin: 0 0 15px; }
.rsp-day-facts div { padding: 10px; border-radius: 11px; background: #f6f8fb; }
.rsp-day-facts dt { color: var(--rsp-muted); font-size: 8px; text-transform: uppercase; letter-spacing: .05em; }
.rsp-day-facts dd { margin: 3px 0 0; font-size: 11px; font-weight: 750; }

.rsp-roster-list { display: grid; gap: 9px; }
.rsp-roster-item { display: grid; grid-template-columns: 45px 1fr auto; align-items: center; gap: 13px; padding: 13px; border: 1px solid var(--rsp-line); border-radius: 14px; }
.rsp-roster-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px; color: var(--rsp-blue); background: var(--rsp-blue-soft); font-size: 18px; }
.rsp-roster-copy > span { color: var(--rsp-muted); font-size: 9px; }
.rsp-roster-copy h4 { margin: 3px 0; font-size: 13px; }
.rsp-roster-actions { display: flex; align-items: center; gap: 8px; }
.rsp-roster-actions > span { color: var(--rsp-muted); font-size: 9px; }

.rsp-search-results-card { margin-top: 18px; }
.rsp-universal-results { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.rsp-universal-result { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; padding: 11px; border: 1px solid var(--rsp-line); border-radius: 12px; color: var(--rsp-text); background: #fff; text-align: left; }
.rsp-universal-result:hover { border-color: #adc0da; background: #f8faff; }
.rsp-universal-result strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.rsp-universal-result small { color: var(--rsp-muted); font-size: 8px; }

.rsp-empty-state { min-height: 120px; display: grid; place-items: center; align-content: center; gap: 5px; padding: 25px; border: 1px dashed #cad4e0; border-radius: 16px; color: #8995a6; background: rgba(255,255,255,.58); text-align: center; }
.rsp-empty-state span { font-size: 23px; }
.rsp-empty-state p { margin: 0; font-size: 11px; }

.rsp-notice { position: fixed; z-index: 99999; right: 22px; top: 22px; max-width: 360px; padding: 12px 16px; border-radius: 12px; color: #fff; background: var(--rsp-green); box-shadow: 0 16px 40px rgba(0,0,0,.2); opacity: 0; pointer-events: none; transform: translateY(-10px); transition: .2s ease; font-size: 12px; }
.rsp-notice.is-visible { opacity: 1; transform: none; }
.rsp-notice.is-error { background: var(--rsp-red); }
.rsp-loading { min-height: 300px; display: grid; place-items: center; align-content: center; gap: 12px; color: var(--rsp-muted); }
.rsp-loading span { width: 34px; height: 34px; border: 3px solid #d9e2ec; border-top-color: var(--rsp-blue); border-radius: 50%; animation: rspSpin .8s linear infinite; }
.rsp-loading p { margin: 0; font-size: 11px; }
.rsp-loading.is-hidden { display: none; }
@keyframes rspSpin { to { transform: rotate(360deg); } }

.rsp-login-shell { width: min(620px, calc(100vw - 30px)); margin: 60px auto; padding: 22px; border-radius: 28px; background: linear-gradient(135deg, #10233f, #245883); box-shadow: var(--rsp-shadow); }
.rsp-login-card { padding: 35px; border-radius: 20px; background: #fff; }
.rsp-login-card h1 { margin: 6px 0 10px; font-size: 30px; letter-spacing: -.04em; }
.rsp-login-card p { color: var(--rsp-muted); line-height: 1.65; }
.rsp-login-card label { display: block; margin: 12px 0 5px; font-size: 11px; font-weight: 750; }
.rsp-login-card input[type="text"], .rsp-login-card input[type="password"] { width: 100%; min-height: 44px; padding: 10px; border: 1px solid var(--rsp-line); border-radius: 11px; }
.rsp-login-card .login-remember label { display: flex; gap: 7px; align-items: center; }
.rsp-login-card .button { min-height: 43px; padding: 0 18px; border: 0; border-radius: 11px; color: #fff; background: var(--rsp-blue); }
.rsp-login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.rsp-login-brand img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  display: block;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(16,35,63,.08);
}
.rsp-login-brand strong {
  font-size: 18px;
  letter-spacing: .01em;
  color: var(--rsp-navy);
}

@media (max-width: 1220px) {
  .rsp-dashboard { grid-template-columns: 230px minmax(0,1fr); }
  .rsp-sidebar { padding-left: 15px; padding-right: 15px; }
  .rsp-main { padding: 24px; }
  .rsp-stats-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .rsp-placement-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 900px) {
  .rsp-dashboard { display: block; min-height: 85vh; overflow-x: clip; overflow-y: visible; }
  body.rsp-standalone-page .rsp-main { padding-top: calc(env(safe-area-inset-top, 0px) + 18px); }
  body.rsp-standalone-page .rsp-topbar { padding-top: 0; }
  .rsp-sidebar {
    position: fixed;
    z-index: 9999;
    inset: 0 auto 0 0;
    width: 280px;
    max-width: 84vw;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-x: none;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y pinch-zoom;
    transform: translate3d(-105%, 0, 0);
    transition: transform .22s ease;
    box-shadow: 20px 0 60px rgba(0,0,0,.25);
  }
  .rsp-dashboard.is-menu-open .rsp-sidebar { transform: translate3d(0, 0, 0); }
  .rsp-sidebar * { max-width: 100%; }
  .rsp-mobile-menu { display: grid; place-items: center; flex: 0 0 auto; }
  .rsp-topbar { justify-content: flex-start; }
  .rsp-topbar > .rsp-primary-button { margin-left: auto; }
  .rsp-hero { grid-template-columns: 1fr; }
  .rsp-grid-2-1, .rsp-grid-2 { grid-template-columns: 1fr; }
  .rsp-stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .rsp-planning-actions { grid-template-columns: 1fr; justify-items: center; }
  .rsp-planning-actions > :first-child, .rsp-planning-actions > :last-child { justify-self: center; }
}

@media (max-width: 650px) {
  .rsp-dashboard { width: calc(100vw - 12px); margin-top: 6px; margin-bottom: 6px; border-radius: 18px; }
  .rsp-main { padding: 15px; }
  body.rsp-standalone-page .rsp-main { padding-top: calc(env(safe-area-inset-top, 0px) + 22px); }
  .rsp-topbar { align-items: flex-start; gap: 10px; }
  .rsp-topbar .rsp-eyebrow { display: none; }
  .rsp-topbar h1 { font-size: 21px; }
  .rsp-topbar > .rsp-primary-button { min-height: 39px; padding: 8px 10px; font-size: 10px; }
  .rsp-hero { padding: 23px 19px; border-radius: 18px; }
  .rsp-hero h2 { font-size: 31px; }
  .rsp-stats-grid { grid-template-columns: 1fr 1fr; }
  .rsp-stat-card { padding: 14px; }
  .rsp-stat-card strong { font-size: 23px; }
  .rsp-section-heading { display: block; }
  .rsp-section-heading .rsp-primary-button { margin-top: 14px; }
  .rsp-form-grid { grid-template-columns: 1fr; }
  .rsp-field-wide { grid-column: auto; }
  .rsp-placement-grid, .rsp-important-grid, .rsp-universal-results { grid-template-columns: 1fr; }
  .rsp-card { padding: 16px; }
  .rsp-calendar-card { overflow-x: auto; }
  .rsp-calendar { min-width: 620px; }
  .rsp-calendar-cell { min-height: 73px; }
  .rsp-table-shell { border: 0; overflow: visible; background: transparent; box-shadow: none; }
  .rsp-table, .rsp-table tbody, .rsp-table tr, .rsp-table td { display: block; width: 100%; }
  .rsp-table thead { display: none; }
  .rsp-table tr { margin-bottom: 11px; padding: 11px; border: 1px solid var(--rsp-line); border-radius: 14px; background: #fff; }
  .rsp-table td { max-width: none; display: grid; grid-template-columns: 105px 1fr; gap: 10px; padding: 7px 3px; border-bottom: 1px solid #eef2f6; }
  .rsp-table td::before { content: attr(data-label); color: var(--rsp-muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
  .rsp-table td:last-child { display: block; border-bottom: 0; }
  .rsp-roster-item { grid-template-columns: 42px 1fr; }
  .rsp-roster-actions { grid-column: 1 / -1; flex-wrap: wrap; }
  .rsp-day-facts { grid-template-columns: 1fr; }
  .rsp-mini-metrics { grid-template-columns: 1fr; }
  .rsp-notice { left: 12px; right: 12px; top: 12px; max-width: none; }
}

/* Standalone app shell: the dashboard owns the full browser viewport. */
html.rsp-dashboard-document,
body.rsp-standalone-page {
  width: 100%;
  min-width: 0;
  min-height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--rsp-bg);
  overflow-x: hidden;
}

body.rsp-standalone-page {
  min-height: 100vh;
}

body.rsp-standalone-page .rsp-dashboard {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  transform: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

body.rsp-standalone-page .rsp-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow-y: auto;
}

body.rsp-standalone-page .rsp-main {
  min-height: 100vh;
}

body.rsp-standalone-page .rsp-login-shell {
  min-height: 100vh;
  width: 100%;
  margin: 0;
  padding: clamp(20px, 6vw, 70px);
  border-radius: 0;
  display: grid;
  place-items: center;
}

body.rsp-standalone-page .rsp-login-card {
  width: min(560px, 100%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .22);
}

body.rsp-standalone-page noscript {
  position: fixed;
  z-index: 100000;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 14px 18px;
  border-radius: 12px;
  color: #fff;
  background: #d94a52;
  text-align: center;
  font-family: system-ui, sans-serif;
}

@media (max-width: 900px) {
  body.rsp-standalone-page .rsp-dashboard {
    min-height: 100vh;
  }

  body.rsp-standalone-page .rsp-sidebar {
    position: fixed;
    top: 0;
    height: 100vh;
  }
}

@media (max-width: 650px) {
  body.rsp-standalone-page .rsp-dashboard {
    width: 100%;
    margin: 0;
    border-radius: 0;
  }
}

/* Placementfoto's openen in een eigen lightbox, zonder een nieuwe pagina. */
button.rsp-placement-image {
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  cursor: zoom-in;
  text-align: left;
}

.rsp-image-zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(16, 35, 63, .82);
  box-shadow: 0 5px 18px rgba(0, 0, 0, .18);
  font-size: 9px;
  font-weight: 750;
  opacity: 0;
  transform: translateY(4px);
  transition: .2s ease;
}

.rsp-placement-image:hover .rsp-image-zoom,
.rsp-placement-image:focus-visible .rsp-image-zoom {
  opacity: 1;
  transform: none;
}

.rsp-placement-image:focus-visible {
  outline: 3px solid rgba(45, 108, 223, .45);
  outline-offset: -3px;
}

body.rsp-lightbox-open {
  overflow: hidden !important;
}

.rsp-lightbox {
  position: fixed;
  z-index: 1000000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 56px);
  background: rgba(5, 13, 25, .88);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .18s ease;
  font-family: Montserrat, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.rsp-lightbox[hidden] {
  display: none !important;
}

.rsp-lightbox.is-open {
  opacity: 1;
}

.rsp-lightbox figure {
  width: min(1180px, 94vw);
  max-height: 90vh;
  display: grid;
  gap: 10px;
  justify-items: center;
  margin: 0;
  transform: scale(.975);
  transition: transform .18s ease;
}

.rsp-lightbox.is-open figure {
  transform: none;
}

.rsp-lightbox img {
  display: block;
  max-width: 100%;
  max-height: calc(90vh - 48px);
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .5);
}

.rsp-lightbox figcaption {
  max-width: 850px;
  color: rgba(255,255,255,.86);
  font-size: 12px;
  text-align: center;
}

.rsp-lightbox-close {
  position: fixed;
  z-index: 2;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  color: #fff;
  background: rgba(16,35,63,.72);
  cursor: pointer;
  font-size: 29px;
  line-height: 1;
}

.rsp-lightbox-close:hover,
.rsp-lightbox-close:focus-visible {
  background: #fff;
  color: var(--rsp-navy);
  outline: none;
}

/* Uitbreidingen v0.4: documenten, klantkaarten, winkelplanning en mediabibliotheek. */
.rsp-file-button {
  white-space: nowrap;
}

.rsp-file-missing,
.rsp-muted-copy {
  color: var(--rsp-muted);
  font-size: 10px;
}

.rsp-contact-grid,
.rsp-document-grid,
.rsp-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.rsp-contact-card,
.rsp-document-card,
.rsp-media-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--rsp-line);
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(24,56,95,.055);
}

.rsp-contact-card,
.rsp-document-card {
  padding: 19px;
}

.rsp-contact-card h3,
.rsp-document-card h3,
.rsp-media-copy h3 {
  margin: 10px 0 8px;
  color: var(--rsp-text);
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -.025em;
}

.rsp-contact-facts {
  display: grid;
  gap: 7px;
  margin: 13px 0;
}

.rsp-contact-facts div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 9px;
  padding: 9px 10px;
  border-radius: 10px;
  background: #f6f8fb;
}

.rsp-contact-facts dt {
  color: var(--rsp-muted);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.rsp-contact-facts dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 10px;
  font-weight: 650;
}

.rsp-contact-facts a {
  color: var(--rsp-blue);
  text-decoration: none;
}

.rsp-always-visible-info,
.rsp-highlight-info {
  margin: 13px 0;
  padding: 13px;
  border: 1px solid #e1e8f2;
  border-radius: 12px;
  background: #f7f9fc;
  font-size: 11px;
}

.rsp-highlight-info {
  border-color: #c8d8f4;
  background: var(--rsp-blue-soft);
}

.rsp-document-card .rsp-eyebrow {
  margin-top: 14px;
}

.rsp-document-subtitle {
  margin: -2px 0 12px;
  color: var(--rsp-muted);
  font-size: 11px;
  font-weight: 650;
}

.rsp-card-bottom-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin-top: 16px;
}

.rsp-card-bottom-actions .rsp-row-actions {
  margin-left: auto;
}

.rsp-media-card {
  display: flex;
  flex-direction: column;
}

.rsp-media-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #10233f, #296c98);
  cursor: zoom-in;
}

.rsp-media-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.rsp-media-visual:hover img,
.rsp-media-visual:focus-visible img {
  transform: scale(1.025);
}

.rsp-media-visual.is-video {
  align-content: center;
  gap: 7px;
  cursor: pointer;
}

.rsp-media-visual.is-video > span {
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  padding-left: 4px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 50%;
  background: rgba(255,255,255,.13);
  font-size: 22px;
}

.rsp-media-visual.is-video small {
  color: rgba(255,255,255,.78);
  font-size: 10px;
  font-weight: 750;
}

.rsp-media-copy {
  flex: 1;
  padding: 16px;
}

.rsp-media-copy > p {
  margin: 0 0 12px;
  color: var(--rsp-muted);
  font-size: 10px;
}

/* Universele lightbox: afbeeldingen, video, PDF, Word en Excel. */
.rsp-lightbox-panel {
  width: min(1280px, 95vw);
  height: min(900px, 91vh);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  background: #0b1728;
  box-shadow: 0 30px 100px rgba(0,0,0,.58);
  transform: scale(.975);
  transition: transform .18s ease;
}

.rsp-lightbox.is-open .rsp-lightbox-panel {
  transform: none;
}

.rsp-lightbox-content {
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #07111f;
}

.rsp-lightbox-content > img,
.rsp-lightbox-content > video,
.rsp-lightbox-content > iframe {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.rsp-lightbox-content > img,
.rsp-lightbox-content > video {
  object-fit: contain;
  background: #07111f;
}

.rsp-lightbox-content > video {
  padding: 8px;
}

.rsp-lightbox-fallback {
  max-width: 520px;
  padding: 28px;
  color: #fff;
  text-align: center;
}

.rsp-lightbox-fallback p {
  color: rgba(255,255,255,.7);
}

.rsp-lightbox-footer {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  color: rgba(255,255,255,.88);
  background: #10233f;
  font-size: 11px;
}

.rsp-lightbox-footer span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rsp-lightbox-footer .rsp-secondary-button {
  flex: 0 0 auto;
}

@media (max-width: 1220px) {
  .rsp-contact-grid,
  .rsp-document-grid,
  .rsp-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .rsp-contact-grid,
  .rsp-document-grid,
  .rsp-media-grid {
    grid-template-columns: 1fr;
  }

  .rsp-lightbox {
    padding: 8px;
  }

  .rsp-lightbox-panel {
    width: 100%;
    height: calc(100vh - 16px);
    border-radius: 12px;
  }

  .rsp-lightbox-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .rsp-lightbox-footer .rsp-secondary-button {
    width: 100%;
  }
}

/* Uitbreidingen v0.5: week/maand-overzicht, adminminuten, compacte placements en EXPORT. */
.rsp-home-range-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin: 17px 0 -3px;
  color: var(--rsp-muted);
  font-size: 10px;
  font-weight: 700;
}

.rsp-segmented-control {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--rsp-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(24,56,95,.05);
}

.rsp-segmented-control button {
  min-height: 32px;
  padding: 6px 11px;
  border: 0;
  border-radius: 9px;
  color: var(--rsp-muted);
  background: transparent;
  font-size: 10px;
  font-weight: 750;
}

.rsp-segmented-control button.is-active {
  color: #fff;
  background: var(--rsp-blue);
  box-shadow: 0 5px 12px rgba(45,108,223,.22);
}

.rsp-stats-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.rsp-mini-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rsp-placement-table td:first-child,
.rsp-placement-table th:first-child {
  width: 92px;
}

.rsp-placement-thumb {
  width: 68px;
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 0;
  border: 0;
  color: var(--rsp-blue);
  background: transparent;
  cursor: zoom-in;
  font-size: 8px;
  font-weight: 750;
}

.rsp-placement-thumb img {
  width: 64px;
  height: 48px;
  display: block;
  object-fit: cover;
  border: 1px solid var(--rsp-line);
  border-radius: 9px;
  background: #edf2f7;
  box-shadow: 0 5px 13px rgba(24,56,95,.12);
  transition: .18s ease;
}

.rsp-placement-thumb:hover img,
.rsp-placement-thumb:focus-visible img {
  transform: scale(1.04);
  border-color: var(--rsp-blue);
}

.rsp-placement-thumb:focus-visible {
  outline: 2px solid rgba(45,108,223,.35);
  outline-offset: 3px;
  border-radius: 9px;
}

.rsp-placement-no-photo {
  display: inline-flex;
  width: 64px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border: 1px dashed #c8d2df;
  border-radius: 9px;
  color: #8a96a8;
  background: #f5f7fa;
  text-align: center;
  font-size: 8px;
}

.rsp-export-weekbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid var(--rsp-line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(24,56,95,.045);
}

.rsp-export-week-label {
  min-width: 260px;
  flex: 1 1 300px;
  text-align: center;
}

.rsp-export-week-label span,
.rsp-export-week-label strong {
  display: block;
}

.rsp-export-week-label span {
  color: var(--rsp-muted);
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.rsp-export-week-label strong {
  margin-top: 4px;
  color: var(--rsp-navy);
  font-size: 15px;
}

.rsp-export-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 18px;
}

.rsp-export-stat {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--rsp-line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 8px 23px rgba(24,56,95,.05);
}

.rsp-export-stat span,
.rsp-export-stat strong,
.rsp-export-stat small {
  display: block;
}

.rsp-export-stat span {
  color: var(--rsp-muted);
  font-size: 10px;
  font-weight: 700;
}

.rsp-export-stat strong {
  margin: 8px 0 4px;
  color: var(--rsp-navy);
  font-size: 31px;
  line-height: 1;
}

.rsp-export-stat small {
  color: #8d99a9;
  font-size: 9px;
  line-height: 1.4;
}

.rsp-export-chart-card {
  margin-bottom: 18px;
}

.rsp-export-chart-heading {
  align-items: flex-end;
}

.rsp-export-chart-heading p {
  margin: 6px 0 0;
  color: var(--rsp-muted);
  font-size: 11px;
}

.rsp-compact-select {
  display: grid;
  gap: 5px;
  color: var(--rsp-muted);
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.rsp-compact-select select {
  min-height: 38px;
  padding: 0 34px 0 11px;
  border: 1px solid var(--rsp-line);
  border-radius: 10px;
  color: var(--rsp-text);
  background: #fff;
  font-size: 11px;
  text-transform: none;
  letter-spacing: normal;
}

.rsp-chart-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 12px;
}

.rsp-chart-toggles label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--rsp-line);
  border-radius: 999px;
  color: #46546a;
  background: #f8fafc;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.rsp-chart-toggles input {
  accent-color: var(--rsp-blue);
}

.rsp-chart-wrap {
  position: relative;
  width: 100%;
  min-height: 390px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid #e7edf4;
  border-radius: 15px;
  background: linear-gradient(180deg, #fff, #fbfcfe);
}

.rsp-chart-wrap canvas {
  display: block;
  min-width: 520px;
}

.rsp-chart-empty {
  min-height: 390px;
  display: grid;
  place-items: center;
  color: var(--rsp-muted);
  font-size: 11px;
}

.rsp-chart-legend-note {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: var(--rsp-muted);
  font-size: 9px;
}

.rsp-inline-status {
  display: inline-flex;
  margin: 0;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 8px;
}

.rsp-export-table tfoot th {
  padding: 13px 14px;
  border-top: 2px solid #d8e2ee;
  color: var(--rsp-navy);
  background: #f2f6fb;
  text-align: left;
  font-size: 10px;
}

@media (max-width: 1350px) {
  .rsp-stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rsp-export-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .rsp-export-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rsp-export-weekbar .rsp-primary-button { width: 100%; }
}

@media (max-width: 650px) {
  .rsp-home-range-bar {
    align-items: stretch;
    flex-direction: column;
  }
  .rsp-segmented-control,
  .rsp-segmented-control button { width: 100%; }
  .rsp-stats-grid,
  .rsp-export-summary { grid-template-columns: 1fr 1fr; }
  .rsp-export-week-label { order: -1; min-width: 100%; }
  .rsp-export-weekbar > button { flex: 1 1 calc(50% - 8px); }
  .rsp-export-chart-heading { align-items: stretch; flex-direction: column; }
  .rsp-chart-legend-note { flex-direction: column; }

  .rsp-placement-table-shell { overflow: visible; border: 0; background: transparent; box-shadow: none; }
  .rsp-placement-table thead { display: none; }
  .rsp-placement-table,
  .rsp-placement-table tbody,
  .rsp-placement-table tr,
  .rsp-placement-table td { display: block; width: 100%; max-width: none; }
  .rsp-placement-table tr {
    margin-bottom: 11px;
    padding: 13px 13px 9px 92px;
    position: relative;
    border: 1px solid var(--rsp-line);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 7px 19px rgba(24,56,95,.045);
  }
  .rsp-placement-table td {
    min-height: 0;
    padding: 4px 0;
    border: 0;
  }
  .rsp-placement-table td::before {
    content: attr(data-label) ": ";
    color: var(--rsp-muted);
    font-size: 8px;
    font-weight: 750;
    text-transform: uppercase;
  }
  .rsp-placement-table td:first-child {
    position: absolute;
    left: 13px;
    top: 13px;
    width: 68px;
    padding: 0;
  }
  .rsp-placement-table td:first-child::before,
  .rsp-placement-table td:last-child::before { content: none; }
  .rsp-placement-table td:last-child { padding-top: 9px; }
}

@media (max-width: 440px) {
  .rsp-stats-grid,
  .rsp-export-summary { grid-template-columns: 1fr; }
}

.rsp-chart-toggles label i {
  width: 16px;
  height: 3px;
  display: inline-block;
  border-radius: 999px;
  background: #718096;
}
.rsp-chart-toggles .rsp-series-presence i { background: #2d6cdf; }
.rsp-chart-toggles .rsp-series-admin i { background: #d79c13; }
.rsp-chart-toggles .rsp-series-contract i { background: repeating-linear-gradient(90deg, #596779 0 5px, transparent 5px 8px); }
.rsp-chart-toggles .rsp-series-placements i { background: #a94872; }

/* Merklogo's / Extra's */
.rsp-brand-logo-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  max-width: 82px;
  height: 30px;
  padding: 3px 6px;
  border: 1px solid #e1e8f2;
  border-radius: 8px;
  background: #fff;
  vertical-align: middle;
  cursor: zoom-in;
  box-shadow: 0 3px 10px rgba(24,56,95,.04);
}

.rsp-brand-logo-inline img {
  display: block;
  width: auto;
  max-width: 68px;
  height: auto;
  max-height: 21px;
  object-fit: contain;
}

.rsp-brand-logo-inline:hover,
.rsp-brand-logo-inline:focus-visible {
  border-color: var(--rsp-blue);
  box-shadow: 0 0 0 3px rgba(45,108,223,.11);
}

.rsp-brand-logo-inline.is-card-logo {
  max-width: 98px;
  height: 32px;
}

.rsp-brand-logo-inline.is-card-logo img {
  max-width: 84px;
  max-height: 23px;
}

.rsp-brand-logo-inline.is-activity-logo {
  min-width: 38px;
  max-width: 60px;
  height: 23px;
  padding: 2px 5px;
  border-radius: 6px;
}

.rsp-brand-logo-inline.is-activity-logo img {
  max-width: 49px;
  max-height: 15px;
}

.rsp-brand-text-fallback {
  color: inherit;
}

.rsp-customer-brand-line,
.rsp-activity-title-brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.rsp-customer-brand-line {
  min-height: 34px;
  margin: 7px 0 10px;
  color: var(--rsp-muted);
  font-size: 10px;
}

.rsp-customer-brand-line .rsp-separator {
  color: #a8b2c1;
}

.rsp-brand-logo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.rsp-brand-logo-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--rsp-line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 8px 23px rgba(24,56,95,.05);
}

.rsp-brand-logo-preview {
  display: grid;
  place-items: center;
  width: 96px;
  height: 72px;
  padding: 9px;
  overflow: hidden;
  border: 1px solid #e4eaf2;
  border-radius: 13px;
  background: linear-gradient(135deg, #fff, #f5f7fa);
  cursor: zoom-in;
}

.rsp-brand-logo-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rsp-brand-logo-copy {
  min-width: 0;
}

.rsp-brand-logo-copy h3 {
  margin: 4px 0 3px;
  color: var(--rsp-navy);
  font-size: 17px;
}

.rsp-brand-logo-copy p {
  margin: 0;
  overflow: hidden;
  color: var(--rsp-muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rsp-brand-logo-card > .rsp-row-actions {
  grid-column: 1 / -1;
  justify-content: flex-end;
  padding-top: 11px;
  border-top: 1px solid #edf1f6;
}

@media (max-width: 1150px) {
  .rsp-brand-logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  .rsp-brand-logo-grid { grid-template-columns: 1fr; }
  .rsp-brand-logo-inline { min-width: 44px; max-width: 72px; }
  .rsp-brand-logo-inline img { max-width: 58px; }
}

.rsp-lightbox.is-logo-preview .rsp-lightbox-content {
  background: #eef2f7;
}

.rsp-lightbox.is-logo-preview .rsp-lightbox-content > img {
  padding: clamp(22px, 5vw, 72px);
  background: #fff;
}

/* Bulk upload van merklogo's */
.rsp-logo-upload-queue {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--rsp-line);
  border-radius: 16px;
  background: #f8fafc;
}

.rsp-logo-queue-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 3px 3px 11px;
  border-bottom: 1px solid var(--rsp-line);
}

.rsp-logo-queue-heading h4 {
  margin: 3px 0 0;
  color: var(--rsp-navy);
  font-size: 18px;
}

.rsp-logo-queue-heading p {
  max-width: 520px;
  margin: 0;
  color: var(--rsp-muted);
  font-size: 11px;
  line-height: 1.5;
}

.rsp-logo-upload-row {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(150px, .8fr) minmax(220px, 1.2fr) 30px;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 11px;
  border: 1px solid #e4eaf2;
  border-radius: 14px;
  background: #fff;
}

.rsp-logo-upload-thumb {
  display: grid;
  place-items: center;
  width: 76px;
  height: 58px;
  padding: 7px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  background: linear-gradient(135deg, #fff, #f3f6f9);
}

.rsp-logo-upload-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rsp-logo-upload-file {
  min-width: 0;
}

.rsp-logo-upload-file strong,
.rsp-logo-upload-file span {
  display: block;
}

.rsp-logo-upload-file strong {
  overflow: hidden;
  color: var(--rsp-text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rsp-logo-upload-file span {
  margin-top: 4px;
  color: var(--rsp-muted);
  font-size: 9px;
}

.rsp-logo-name-field {
  min-width: 0;
}

.rsp-logo-name-field > span {
  display: block;
  margin-bottom: 5px;
  color: var(--rsp-muted);
  font-size: 9px;
  font-weight: 750;
}

.rsp-logo-name-field input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--rsp-line);
  border-radius: 11px;
  color: var(--rsp-text);
  background: #fff;
  outline: 0;
}

.rsp-logo-name-field input:focus {
  border-color: var(--rsp-blue);
  box-shadow: 0 0 0 3px rgba(45,108,223,.10);
}

.rsp-logo-order {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  color: var(--rsp-blue);
  background: var(--rsp-blue-soft);
  font-size: 10px;
  font-weight: 800;
}

@media (max-width: 760px) {
  .rsp-logo-queue-heading { align-items: flex-start; flex-direction: column; }
  .rsp-logo-upload-row { grid-template-columns: 64px minmax(0, 1fr) 28px; }
  .rsp-logo-upload-thumb { width: 64px; height: 54px; }
  .rsp-logo-name-field { grid-column: 1 / -1; }
  .rsp-logo-order { grid-column: 3; grid-row: 1; }
}

/* Communicatie-uitbreidingen v0.8.0: ontvanger, mailadres en meerdere bijlagen. */
.rsp-email-link {
  color: var(--rsp-blue);
  overflow-wrap: anywhere;
}

.rsp-attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 170px;
}

.rsp-attachment-chip {
  max-width: 235px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid #d7e0eb;
  border-radius: 9px;
  color: #2c5f9f;
  background: #f6f9fd;
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  overflow-wrap: anywhere;
}

.rsp-attachment-chip:hover,
.rsp-attachment-chip:focus-visible {
  border-color: #9db5d4;
  background: #edf4fd;
  outline: none;
}

.rsp-existing-attachments {
  padding: 13px;
  border: 1px solid #dce5ef;
  border-radius: 12px;
  background: #f8fafc;
}

.rsp-existing-attachments-heading {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 10px;
}

.rsp-existing-attachments-heading small {
  color: var(--rsp-muted);
  font-size: 9px;
  line-height: 1.45;
}

.rsp-existing-attachments-list {
  display: grid;
  gap: 7px;
}

.rsp-existing-attachment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px;
  border: 1px solid #e3e9f0;
  border-radius: 10px;
  background: #fff;
}

.rsp-existing-attachment-row label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #a13e48;
  font-size: 9px;
  font-weight: 750;
  white-space: nowrap;
}

.rsp-communications-table td:nth-child(8) {
  min-width: 190px;
}

@media (max-width: 650px) {
  .rsp-existing-attachment-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .rsp-attachment-chip {
    max-width: 100%;
  }
  .rsp-communications-table td:nth-child(8) {
    min-width: 0;
  }
}

body.rsp-standalone-page.is-logged-in {
  overflow-x: hidden;
}
body.rsp-standalone-page .rsp-sidebar,
body.rsp-standalone-page .rsp-main,
body.rsp-standalone-page .rsp-dashboard {
  overscroll-behavior-x: none;
}
@media (max-width: 900px) {
  body.rsp-standalone-page .rsp-sidebar {
    overflow-x: hidden;
    overflow-y: auto;
    touch-action: pan-y pinch-zoom;
  }
}

@media (max-width: 900px) {
  body.rsp-standalone-page .rsp-mobile-menu,
  body.rsp-standalone-page .rsp-topbar > .rsp-primary-button {
    position: relative;
    z-index: 3;
  }
}
