/* Algemene layout */
html, body {
  overflow-x: hidden;
}

body {
	
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
	font-size: 14px;
}
.ql-editor {
    font-size: 16px !important;
}
.dropzone {
    border: 1px solid #6c757d;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    background: linear-gradient(to bottom, #f5faff, #e8f2ff, #f5faff);
    color: #003366;
    font-size: 15px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.dropzone.hover {
    background: linear-gradient(to bottom, #e0efff, #cfe5ff, #e0efff);
    border-color: #2b7cff;
}

.dropzone::before {
    content: "⬆";
    display: block;
    font-size: 28px;
    margin-bottom: 8px;
    color: #2b7cff;
}

.activities-table td.omschrijving {
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
}
/* Layout van menu + content */
.layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar menu */
.sidebar {
    width: 200px;
    background: #f0f0f0;
    padding: 15px;
    box-sizing: border-box;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    text-decoration: none;
    color: #333;
}

.sidebar ul li a:hover {
    color: #0073e6;
}

/* Hoofdcontent */
.content {
    flex: 1;
    padding: 20px;
    box-sizing: border-box;
}

/* Tabellen */
table {
    border-collapse: collapse;
    width: 100%;
}

table th, table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}

input,
select,
textarea {
    max-width: 100%;
    box-sizing: border-box;
}

.form-table {
    max-width: 100%;
    box-sizing: border-box;
}

/* Fout- en info-meldingen */
.error {
    background-color: #fdd;
    border: 1px solid #f99;
    padding: 10px;
    margin-bottom: 15px;
}

.info {
    background-color: #dfd;
    border: 1px solid #9f9;
    padding: 10px;
    margin-bottom: 15px;
}

/* Paginering */
.pagination a {
    display: inline-block;
    margin: 2px;
    padding: 5px 10px;
    border: 1px solid #ccc;
    text-decoration: none;
    color: #333;
}

.pagination a:hover {
    background-color: #0073e6;
    color: white;
}
.filter-container {
    background-color: #f9f9f9;
    padding: 15px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    border-radius: 6px;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-row {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.filter-row label {
    font-weight: bold;
    margin-bottom: 3px;
}

.filter-row input,
.filter-row select {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.filter-row button,
.reset-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    box-sizing: border-box;
    padding: 6px 12px;
    margin-top: 0;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
}

.reset-button {
    background-color: #6c757d;
}

.activities-table {
    width: 100%;
    border-collapse: collapse;
}

.activities-table th,
.activities-table td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: left;
	font-weight: normal !important;
    font-size: 0.9em;
}

.activities-table th {
    background-color: #f1f1f1;
}

.activities-table tr:nth-child(even) {
    background-color: #fafafa;
}

.activities-table tr:hover {
    background-color: #f0f8ff;
}

.supplier-task-bulkbar,
.supplier-task-group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 14px 0 8px;
}

.supplier-task-group-title h3 {
    margin: 0;
    font-size: 16px;
}

.supplier-task-table small {
    color: #64748b;
}

.supplier-task-table {
    width: 100%;
    table-layout: fixed;
}

.supplier-task-table .supplier-task-col-select {
    width: 50px;
}

.supplier-task-table .supplier-task-col-source {
    width: 100px;
}

.supplier-task-table .supplier-task-col-case {
    width: 125px;
}

.supplier-task-table .supplier-task-col-supplier {
    width: 200px;
}

.supplier-task-table .supplier-task-col-product {
    width: auto;
}

.supplier-task-table .supplier-task-col-code {
    width: 125px;
}

.supplier-task-table .supplier-task-col-qty {
    width: 75px;
}

.supplier-task-table .supplier-task-col-assigned {
    width: 150px;
}

.supplier-task-table .supplier-task-col-action {
    width: 100px;
}

.supplier-task-table th,
.supplier-task-table td {
    overflow-wrap: break-word;
    word-break: normal;
    vertical-align: top;
}

.supplier-task-table th:first-child,
.supplier-task-table td:first-child {
    padding-left: 4px;
    padding-right: 4px;
    text-align: center;
}

.supplier-task-table th:nth-child(8),
.supplier-task-table td:nth-child(8) {
    white-space: normal;
}

.supplier-task-dialog {
    width: min(720px, calc(100vw - 32px));
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 18px;
}

.supplier-task-dialog::backdrop {
    background: rgba(15, 23, 42, .35);
}

.supplier-task-dialog h3 {
    margin-top: 0;
}

.supplier-task-dialog-block,
.supplier-task-contact-list {
    display: grid;
    gap: 10px;
    margin: 12px 0;
}

.supplier-task-dialog-block label,
.supplier-task-contact-list label,
.supplier-task-note {
    display: grid;
    gap: 5px;
}

.supplier-task-contact-list label[hidden] {
    display: none !important;
}

.supplier-task-dialog menu {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 0;
    margin: 16px 0 0;
}

.supplier-task-receive-warnings {
    margin: 12px 0;
    padding: 10px 12px;
    border: 1px solid #f59e0b;
    border-radius: 6px;
    background: #fffbeb;
    color: #7c2d12;
    font-size: 13px;
}

.supplier-task-receive-warnings ul {
    margin: 8px 0 0;
    padding-left: 18px;
}


/* Publieke klantpagina's, gebaseerd op de Fauna e-mailtemplates */
body.public-email-body {
  margin: 0;
  min-height: 100vh;
  background: #eaeaea;
  color: #162b44;
  font-family: Inter, Arial, Helvetica, sans-serif;
}

.public-email-shell {
  width: 100%;
  min-height: 100vh;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 30px 12px;
}

.public-email-card {
  width: 100%;
  max-width: 600px;
  overflow: hidden;
  background: #fafafa;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.public-email-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  background: #162b44;
}

.public-email-header img {
  display: block;
  width: 100px;
  height: auto;
  border: 0;
}

.public-email-titlebar {
  padding: 10px 30px;
  border-top: 3px solid #162b44;
  background: #e6eff9;
  text-align: center;
}

.public-email-titlebar h1 {
  margin: 0;
  color: #162b44;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

.public-email-titlebar p {
  margin: 5px 0 0;
  color: #162b44;
  font-size: 14px;
  line-height: 1.35;
}

.public-email-content {
  padding: 25px 30px 30px;
  background: #fafafa;
  color: #162b44;
  font-size: 14px;
  line-height: 22px;
}

.public-email-content p {
  margin: 0 0 15px;
}

.public-email-section {
  margin: 20px 0 0;
}

.public-email-section:first-child {
  margin-top: 0;
}

.public-email-section h2 {
  margin: 0 0 10px;
  color: #162b44;
  font-size: 16px;
  line-height: 1.25;
}

.public-email-info-table,
.public-email-lines-table {
  width: 100%;
  border-spacing: 0;
  border-collapse: separate;
  border: 1px solid #ccc;
  border-radius: 5px;
  background: #fafafa;
  color: #162b44;
  font-size: 14px;
}

.public-email-info-table th,
.public-email-info-table td,
.public-email-lines-table th,
.public-email-lines-table td {
  padding: 6px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e3e3e3;
}

.public-email-info-table tr:last-child th,
.public-email-info-table tr:last-child td,
.public-email-lines-table tr:last-child td {
  border-bottom: 0;
}

.public-email-info-table th {
  width: 150px;
  font-weight: 700;
}

.public-email-lines-table thead th {
  background: #f4f6fa;
  font-weight: 700;
}

.public-status-table {
  width: 100%;
  border-spacing: 0;
  border-collapse: separate;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin: 10px 0 16px;
  background: #fafafa;
  color: #162b44;
  font-size: 14px;
  overflow: hidden;
}

.public-status-table th,
.public-status-table td {
  padding: 7px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e3e3e3;
}

.public-status-table tr:last-child td {
  border-bottom: 0;
}

.public-status-table thead th {
  background: #f4f6fa;
  font-weight: 700;
}

.public-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.public-photo-grid figure {
  margin: 0;
  border: 1px solid #d7dee8;
  border-radius: 6px;
  padding: 8px;
  background: #fff;
}

.public-photo-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
}

.public-photo-grid figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: #45576d;
}

.public-email-table-scroll {
  width: 100%;
  overflow-x: auto;
}

.public-payment-result .info,
.public-payment-result .error,
.public-email-section > .info,
.public-email-section > .error {
  margin: 0;
}

.public-email-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.public-email-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #162b44;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.public-email-btn-primary {
  background: #162b44;
  color: #fff;
}

.public-email-btn-secondary {
  background: #f4f6fa;
  color: #162b44;
}

.public-email-footer {
  padding: 20px;
  border-top: 1px solid #eee;
  background: #fafafa;
  color: #162b44;
  text-align: center;
  font-size: 13px;
  line-height: 22px;
}

.public-email-footer p {
  margin: 10px 0 0;
}

.public-email-footer a {
  color: #162b44;
  text-decoration: underline;
}

.public-email-socials {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
}

.public-email-socials a {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
}

@media (max-width: 600px) {
  .public-email-shell {
    padding: 0;
  }

  .public-email-card {
    max-width: none;
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }

  .public-email-titlebar {
    padding: 10px;
  }

  .public-email-titlebar h1 {
    font-size: 20px;
  }

  .public-email-content {
    padding: 10px;
  }

  .public-email-info-table,
  .public-email-lines-table {
    font-size: 13px;
  }

  .public-email-info-table th {
    width: 118px;
  }
}

/* Home dashboard */
.home-dashboard {
  gap: 18px;
}

.dash-grid {
  display: grid;
  gap: 14px;
}

.dash-grid--summary {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.dash-grid--cards {
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  align-items: start;
}

.dash-kpi,
.dash-card {
  border: 1px solid #d7dee8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.dash-kpi {
  display: grid;
  gap: 5px;
  min-height: 98px;
  padding: 14px;
  color: #111827;
  text-decoration: none;
}

.dash-kpi:hover {
  border-color: #9db5d4;
  background: #f8fafc;
}

.dash-kpi span,
.dash-kpi small {
  color: #64748b;
}

.dash-kpi strong {
  font-size: 1.75rem;
  line-height: 1;
}

.dash-kpi--warning strong {
  color: #b45309;
}

.dash-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  overflow: hidden;
}

.dash-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.dash-card-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.dash-card-head p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 0.9rem;
}

.dash-card-head a {
  white-space: nowrap;
  color: #2563eb;
  text-decoration: none;
  font-size: 0.9rem;
}

.dash-card-head a:hover {
  text-decoration: underline;
}

.dash-card-body,
.dash-chart {
  display: grid;
  gap: 12px;
}

.dash-card-body {
  grid-template-columns: minmax(220px, 1fr) minmax(140px, 0.72fr);
  align-items: center;
  column-gap: 18px;
}

.dash-chart {
  grid-template-columns: 1fr;
  align-items: start;
  justify-items: center;
}

.dash-pie {
  width: 112px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid #d7dee8;
  box-shadow: inset 0 0 0 16px #fff;
}

.dash-legend {
  display: grid;
  gap: 6px;
  width: 100%;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  background: #f8fafc;
}

.dash-legend-title {
  color: #64748b;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.dash-legend-row,
.dash-type-list div {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
}

.dash-legend-row a,
.dash-type-list span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-legend-row a {
  color: #334155;
  text-decoration: none;
}

.dash-legend-row a:hover {
  color: #2563eb;
  text-decoration: underline;
}

.dash-legend-row small {
  color: #64748b;
  font-weight: normal;
}

.dash-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.dash-mini-grid,
.dash-task-split,
.dash-type-list {
  display: grid;
  gap: 8px;
}

.dash-mini-grid {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.dash-mini-grid a,
.dash-task-split a {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  background: #f8fafc;
  color: #111827;
  text-decoration: none;
}

.dash-mini-grid a:hover,
.dash-task-split a:hover {
  border-color: #9db5d4;
}

.dash-mini-grid span,
.dash-task-split span {
  color: #64748b;
  font-size: 0.85rem;
}

.dash-mini-grid strong,
.dash-task-split strong {
  font-size: 1.25rem;
}

.dash-task-split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dash-type-list div {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 7px 0;
  border-bottom: 1px solid #eef2f7;
}

.dash-type-list div:last-child {
  border-bottom: 0;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.dash-table th,
.dash-table td {
  padding: 7px 8px;
  border: 1px solid #e2e8f0;
  vertical-align: top;
}

.dash-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: normal;
}

.dash-table a {
  color: #2563eb;
  text-decoration: none;
}

.dash-table a:hover {
  text-decoration: underline;
}

@media (max-width: 820px) {
  .dash-grid--cards {
    grid-template-columns: 1fr;
  }

  .dash-card-body,
  .dash-chart {
    grid-template-columns: 1fr;
  }

  .dash-pie {
    width: 104px;
  }
}

.description-view{
    padding:10px;
    background:#fff;
    border:1px solid #ddd;
    border-radius:4px;
}

.subtask-not-needed{
    color:#888;
    font-style:italic;
}

.subtask-badge{
    font-size:11px;
    background:#e9ecef;
    color:#495057;
    padding:2px 6px;
    border-radius:4px;
    margin-left:6px;
}

.drag-handle {
    display: inline-block;
    cursor: grab;
    cursor: -webkit-grab;
    user-select: none;
    -webkit-user-select: none;
}

.sortable-chosen .drag-handle,
.sortable-ghost .drag-handle,
.sortable-drag .drag-handle {
    cursor: grabbing;
    cursor: -webkit-grabbing;
}

.sortable-ghost {
    opacity: 0.4;
}

.sortable-chosen {
    background: #f8f9fa;
}

.pagination {
    margin-top: 15px;
}
.pagination a {
    margin-right: 5px;
    padding: 5px 10px;
    background-color: #eee;
    border: 1px solid #ccc;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
}
.pagination a:hover {
    background-color: #ddd;
}
.filter-form {
    max-width: 500px; /* vaste breedte */
    margin: 0; /* links uitgelijnd */
}

.filter-table {
    width: 100%;
    border-collapse: collapse;
}

.filter-table td {
    padding: 3px 6px;
    vertical-align: middle;
    background-color: transparent; /* geen celachtergrond */
}

.filter-table label {
    font-weight: bold;
    margin-bottom: 2px;
    display: block;
}

.filter-table select,
.filter-table input {
    width: 100%;
    padding: 4px 6px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
    font-size: 14px;
}
.filter-table input.small{
	    width: 50%;
}

.filter-table button {
    padding: 5px 12px;
    margin-right: 5px;
    border: none;
    border-radius: 3px;
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
}

.filter-table button:hover {
    background-color: #0056b3;
}

/* Responsive: cellen onder elkaar op kleine schermen */
@media (max-width: 520px) {
    .filter-table td {
        display: block;
        width: 100%;
    }
    
    .filter-table button {
        width: 48%;
        margin-bottom: 5px;
    }
}

.table-wrapper{
	width: 100%;
}
@media (max-width: 768px) {
	.table-wrapper{
	width: 95%;
}
}
/* Algemene kleine font-size */
body, table, select {
    font-size: 14px;
}

input,
textarea {
  font-size: 16px;
  transform: scale(0.85);
  transform-origin: left center;
}
/* Tabellen: geen bold headers meer */
table th {
    font-weight: normal;
}

/* Standaard knopstijl (ook voor <a> als button) */
.btn,
.btn-small {
    display: inline-block;
    padding: 4px 8px;
    border: 1px solid #999;
    border-radius: 3px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    font-size: 11px;
    margin-right: 3px;
}

.btn-small {
    padding: 2px 6px;
    font-size: 11px;
}

.btn:hover,
.btn-small:hover {
    background-color: #e0e0e0;
}

/* Succes-highlight voor een rij (rename / delete) */
.row-success {
    background-color: #dfd !important;
    transition: background-color 0.5s ease;
}
button {
    padding: 6px 12px;
    margin-top: 0;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
}
/* ===========================
   POPUP OVERLAY
   =========================== */

.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* ===========================
   POPUP CONTENT
   =========================== */

.popup-content {
    background: #fff;
    padding: 20px;
    max-width: 600px;
    width: 90%;
    border-radius: 5px;
    position: relative;
    overflow-y: auto;
    max-height: 80vh;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}

/* ===========================
   POPUP HOOFDTABEL
   =========================== */

.popup-content > table {
    width: 100%;
    border-collapse: collapse;
}

.popup-content > table > tr > td,
.popup-content > table > tbody > tr > td {
    padding: 5px 10px;
    vertical-align: top;
    border-bottom: 1px solid #eee;
}

.popup-content > table td:first-child {
    font-weight: bold;
    width: 40%;
}

/* ===========================
   POPUP BESTANDEN (GEEN BORDERS)
   =========================== */

.popup-files-table {
    width: 100%;
    border-collapse: collapse;
    border: none;
}

.popup-files-table td {
    padding: 6px 4px;
    border: none !important;
}

/* ===========================
   POPUP LINKS
   =========================== */

.popup-content a {
    color: #0073e6;
    text-decoration: none;
}

.popup-content a:hover {
    text-decoration: underline;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 600px) {
    .popup-content {
        padding: 15px;
        width: 95%;
    }

    .popup-content > table td:first-child,
    .popup-content > table td:last-child {
        display: block;
        width: 100%;
    }
}
/* ===========================
   POPUP – BESTANDEN HEADER
   =========================== */

.popup-files-header td {
	background: linear-gradient(to bottom, #e0e0e0, #f8f8f8, #e0e0e0);
    font-weight: bold;
    padding: 8px 10px;
}
/* ===========================
   POPUP – LEGE SCHEIDINGSRIJ
   =========================== */

.popup-separator-row td {
    height: 8px;
    padding: 0;
    background: transparent;

    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;

    border-left: none !important;
    border-right: none !important;
}

.mail-var {
    background: #ffeeba;
    padding: 1px 4px;
    border-radius: 3px;
    font-family: monospace;
}
.mail-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    display: none;
    z-index: 9999;
}
.mail-modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 20px;
    width: 80%;
    max-width: 900px;
}
.preview-box {
    border: 1px solid #ccc;
    padding: 10px;
    background: #fafafa;
}
button:disabled {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
}
.pagination {
    white-space: nowrap;
}

.pagination a,
.pagination span {
    margin: 0 3px;
    text-decoration: none;
}

.pagination .current {
    font-weight: bold;
}

.pagination .dots {
    opacity: 0.6;
}

.pagination input {
    text-align: center;
}
/* sorteerlinks */
.sort-link {
    text-decoration: none;
    color: #333;
}

.sort-link:hover {
    text-decoration: underline;
}

/* actieve kolom */
.sort-link:has(span),
th .sort-link {
    font-weight: 600;
}

th .sort-link:contains("▲"),
th .sort-link:contains("▼") {
    color: #000;
}

/* tabel */
.data-table th {
    background: #f5f5f5;
    cursor: pointer;
}
.desc-tooltip {
    cursor: pointer;
    border-bottom: 1px dotted #666;
}

.tooltip-popup {
    position: absolute;
    background: #333;
    color: #fff;
    padding: 8px 10px;
    border-radius: 4px;

    max-width: 450px;
    font-size: 0.9em;
    line-height: 1.4;

    z-index: 9999;
    box-shadow: 0 4px 10px rgba(0,0,0,.3);
}
.logout-hint {
    display: flex;
    gap: 6px;
    align-items: flex-start;
    margin: 4px 0 0 0;
    padding: 6px 8px;
    border-left: 3px solid #c00;
    background: #fff5f5;
    color: #900;
    font-size: 12px;
    line-height: 1.3;
    border-radius: 4px;
}

.logout-hint-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    fill: #c00;
    margin-top: 1px;
}
/* ===============================
   LOGOUT KNOP
   =============================== */

.logout-item {
    margin-top: 10px;
}

.logout-link {
    display: flex;
    align-items: center;
    gap: 6px;

    color: #b00000;
    font-weight: bold;
    text-decoration: none;
}

.logout-link:hover {
    color: #e00000;
}

.logout-icon {
    width: 16px;
    height: 16px;
    fill: currentColor; /* volgt tekstkleur */
    flex-shrink: 0;
}
/* ===============================
   BASIS LAYOUT
   =============================== */

.layout {
  display: flex;
  min-height: 100vh;
}

/* ===============================
   SIDEBAR (DESKTOP & BASIS)
   =============================== */

.sidebar {
  width: 200px;
  background: #f0f0f0;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* cruciaal voor logout-onderaan */
}

/* ===============================
   MENU STRUCTUUR
   =============================== */

.menu {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
}

.menu-main {
  flex: 0 1 auto;
}

.menu-logout {
  margin-top: auto; /* logout onderaan indien ruimte */
  margin-bottom: 60px;

}
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  @media (max-width: 768px) {
    .menu-logout {
      padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }
  }
}
/* ===============================
   MENU ALS TABEL
   =============================== */

.menu-table {
  width: 100%;
  border-collapse: collapse;
}

.menu-row {
  cursor: pointer;
}

.menu-row td {
  padding: 12px 10px;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}

.menu-row:hover {
  background-color: #f0f8ff;
}

.menu-row a {
  display: flex;
  align-items: center;
  width: 100%;
  color: #333;
  text-decoration: none;
}

/* ===============================
   DRILL-DOWN MENU
   =============================== */

.submenu {
  display: none;
}

.sidebar[data-active-menu] .menu-root {
  display: none;
}

.sidebar[data-active-menu] .submenu {
  display: none;
}
.sidebar[data-active-menu="clientaction"] .submenu[data-submenu="clientaction"],
.sidebar[data-active-menu="tasks"] .submenu[data-submenu="tasks"],
.sidebar[data-active-menu="activiteiten"] .submenu[data-submenu="activiteiten"],
.sidebar[data-active-menu="assortiment"] .submenu[data-submenu="assortiment"],
.sidebar[data-active-menu="leveranciers"] .submenu[data-submenu="leveranciers"],
.sidebar[data-active-menu="gebruikers"]   .submenu[data-submenu="gebruikers"],
.sidebar[data-active-menu="beveiliging"]  .submenu[data-submenu="beveiliging"],
.sidebar[data-active-menu="e-mail"]        .submenu[data-submenu="e-mail"],
.sidebar[data-active-menu="instellingen"]  .submenu[data-submenu="instellingen"],
.sidebar[data-active-menu="profiel"]      .submenu[data-submenu="profiel"] {
  display: block;
}

.menu-back td {
  font-weight: bold;
}

/* ===============================
   LOGOUT BLOK
   =============================== */

.logout-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #333;
  text-decoration: none;
  line-height: 1;
}

.logout-link span {
  line-height: 1;
}

.logout-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

.logout-item:hover {
  background-color: #f8f8f8;
}

/* Tip onder logout */
.logout-tip td {
  padding: 8px 10px;
  border: none;
}

.logout-hint {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}

.logout-hint-icon {
  width: 16px;
  height: 16px;
  fill: #888;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ===============================
   MOBIEL: HAMBURGER SIDEBAR + OVERLAY
   =============================== */

.headermenu__hamburger {
  display: none;
}

.mfilter-open-btn {
  display: none;
}

.sidebar-overlay {
  display: none;
}

@media (max-width: 768px) {

  .mfilter-open-btn {
    display: none !important;
  }
  
  .layout {
    flex-direction: column;
  }

  .headermenu__hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* ===============================
     SIDEBAR (fade, geen slide)
     =============================== */

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100vh;

    padding: 15px;
    box-sizing: border-box;
    background: #f0f0f0;

    z-index: 3000;

    /* fade gedrag */
    opacity: 0;
    pointer-events: none;

    transition: opacity 0.15s ease;
  }

  .sidebar.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  /* ===============================
     OVERLAY (fade synchroon)
     =============================== */

  body.menu-open .sidebar-overlay {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 240px; /* exact sidebar breedte */

    background: rgba(0,0,0,0.45);
    z-index: 2000;

    opacity: 1;
    transition: opacity 0.15s ease;

    pointer-events: auto;
  }

  .sidebar-overlay {
    opacity: 0;
  }

  .content {
    padding: 15px;
  }
}
/* ===============================
   SUBMENU CONTEXT HEADER
   =============================== */

.menu-context td {
  font-weight: bold;
  background: #e9e9e9;
  color: #333;

  border-top: 1px solid #bbb;
  border-bottom: 1px solid #bbb;
  cursor: default;
}
.menu-link {
  cursor: pointer;
}

.menu-link td {
  padding: 12px 10px;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}

.menu-link:hover {
  background-color: #f0f8ff;
}

.menu-link a {
  display: flex;
  align-items: center;
  width: 100%;
  color: #333;
  text-decoration: none;
}
/* ===============================
   MOBIELE HEADER (TOP BAR)
   =============================== */

.mobile-header {
  display: none; /* desktop: uit */
}

.mobile-search-toggle,
.mobile-search-overlay {
  display: none;
}

@media (max-width: 768px) {
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    height: 75px;
    padding: 0 12px;

    background: #162B44; /* donkerder grijs dan pagina */
    z-index: 3500;
    box-sizing: border-box;
  }

  /* Header verbergen zodra menu open is */
  body.menu-open .mobile-header {
    display: none;
  }

  .headermenu__hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    border: 0;
    background: transparent;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
  }

  .mobile-header__logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
  }

  .mobile-header__logo img {
    height: 40px; /* schaal naar wens */
    width: auto;
    display: block;
  }

  .mobile-header__actions {
    display: inline-flex;
    gap: 10px;
    align-items: center;
  }

  .icon-btn {
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
  }

  /* Content onder header laten starten */
  .content {
    padding-top: 90px; /* 75px header + beetje ruimte */
  }

  /* Sidebar drawer blijft leidend */
  .sidebar {
    top: 0; /* menu mag bovenaan beginnen */
    height: 100vh;
    z-index: 3000;
  }

  body.menu-open .sidebar-overlay {
    z-index: 2000;
  }
}
@media (min-width: 769px) {
	p.hide-mobile{
    display: none;
  }
}
@media (max-width: 768px) {
  th.hide-mobile,
  td.hide-mobile {
    display: none;
  }
}
.text-to-icon-allowed,
.text-to-icon-denied {
  position: relative;
  white-space: nowrap;
}
@media (max-width: 768px) {

  th.text-to-icon-allowed,
  th.text-to-icon-denied,
  td.text-to-icon-allowed,
  td.text-to-icon-denied {
    font-size: 0 !important;     /* 🔑 wint van tabelregels */
    padding-left: 0;
    padding-right: 0;
    text-align: center;

    width: 36px;
    min-width: 36px;
    max-width: 36px;
  }

  th.text-to-icon-allowed::after,
  td.text-to-icon-allowed::after {
    content: "✓";
    font-size: 18px;
    color: #28a745;
    line-height: 1;
  }

  th.text-to-icon-denied::after,
  td.text-to-icon-denied::after {
    content: "✕";
    font-size: 18px;
    color: #dc3545;
    line-height: 1;
  }
}

/* basis */
.setting {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* checkbox standaard zichtbaar */
.toggle {
  display: none;
}

/* ───────── MOBILE ───────── */
@media (max-width: 768px) {
  .setting input {
    display: none;
  }

  .setting .toggle {
    display: inline-block;
    width: 44px;
    height: 26px;
    background: #ccc;
    border-radius: 999px;
    position: relative;
    cursor: pointer;
  }

  .setting .toggle::after {
    content: "";
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: 0.2s;
  }

  .setting input:checked ~ .toggle {
    background: #34c759;
  }

  .setting input:checked ~ .toggle::after {
    transform: translateX(18px);
  }
}
@media (max-width: 768px) {

    /* thead alleen hier verbergen */
    .activities-table.activities-table--mobile-cards thead {
        display: none;
    }

    .activities-table.activities-table--mobile-cards,
    .activities-table.activities-table--mobile-cards tbody {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    /* rij = kaart */
    .activities-table.activities-table--mobile-cards tr {
        display: flex;
        flex-direction: column;
        margin-bottom: 1rem;
        border: 1px solid #ddd;
        background-color: #fff;
        overflow: hidden;
    }

    /* standaard td */
    .activities-table.activities-table--mobile-cards td {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 10px;
        width: 100%;
        box-sizing: border-box;
        border-bottom: 1px solid #eee;
    }

    .activities-table.activities-table--mobile-cards td:last-child {
        border-bottom: none;
    }

    /* alle mobiele labels uit */
    .activities-table.activities-table--mobile-cards td::before {
        display: none;
    }

    /* omschrijving als blok */
    .activities-table.activities-table--mobile-cards td.omschrijving {
        display: block;
        padding: 12px 10px;
        white-space: normal;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    /* kolom volledig verbergen */
    .activities-table.activities-table--mobile-cards td[data-label="Ingevoerd op"] {
        display: none;
    }
}
/* ===============================
   OVERLAY & DRAWER
   =============================== */

.mfilter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: none;
  z-index: 4000;
}

.mfilter-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 300px;
  height: 100dvh; /* 🔑 iOS Safari correct */
  background: #fff;
  z-index: 4100;
  display: flex;
  flex-direction: column;
  transition: right 0.25s ease;
}

.mfilter-drawer.is-open {
  right: 0;
}

/* ===============================
   FORM STRUCTUUR
   =============================== */

.mfilter-form {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.mfilter-header {
  flex-shrink: 0;
  padding: 12px;
  border-bottom: 1px solid #ddd;
}

.mfilter-body {
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
  padding: 12px;
  -webkit-overflow-scrolling: touch;

  /* ruimte voor footer + safe area */
  padding-bottom: calc(60px + env(safe-area-inset-bottom));
}

.mfilter-footer {
  flex-shrink: 0;
  padding: 12px;
  border-top: 1px solid #ddd;
  background: #fff;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

/* ===============================
   SECTIES & INPUTS
   =============================== */

.mfilter-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mfilter-section input[type="text"],
.mfilter-section input[type="date"] {
  width: 100%;
  box-sizing: border-box;
}

/* ===============================
   LEVERANCIERS
   =============================== */
/* leveranciers lijst altijd volledig zichtbaar */
.mfilter-supplier-list{
  display:flex;
  flex-direction:column;
}

/* verbergen bij zoeken */
.mfilter-supplier.is-hidden{
  display:none !important;
}

/* geen resultaten melding */
.mfilter-no-results{
  display:none;
  font-size:13px;
  color:#666;
  padding:6px 0;
}
.mfilter-no-results.is-visible{
  display:block;
}

/* “Meer leveranciers” als hij nog in HTML staat: verbergen */
.mfilter-more{
  display:none !important;
}


/* ===============================
   ITEMS & KNOP
   =============================== */

.mfilter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
  border-bottom: 1px solid #eee;
}

.mfilter-more {
  margin-top: 6px;
  background: none;
  border: 0;
  color: #0073e6;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
@media (max-width: 768px) {
  form.filter-desktop {
    display: none !important;
  }
}

.mfilter-no-results {
  display: none;
  font-size: 13px;
  color: #666;
  padding: 6px 0;
}

.mfilter-no-results.is-visible {
  display: block;
}
.mfilter-overlay {
  touch-action: none;
}

/* ===============================
   APP CONFIRM DIALOGS
   =============================== */

.app-confirm-dialog {
  border: 0;
  border-radius: 8px;
  padding: 0;
  width: min(360px, calc(100vw - 28px));
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.22);
}

.app-confirm-dialog::backdrop {
  background: rgba(15, 23, 42, 0.38);
}

.app-confirm-dialog__panel {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.app-confirm-dialog__panel h3,
.app-confirm-dialog__panel p {
  margin: 0;
}

.app-confirm-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ===============================
   ACTIVITEIT FILTERS & FORM
   =============================== */

.activity-filter-shell {
  margin: 0 0 15px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.activity-filter-bar {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  align-items: center;
  padding: 0;
}

.activity-filter-toggle,
.activity-filter-pin {
  border: 1px solid #d7dee8;
  border-radius: 7px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  min-height: 34px;
}

.activity-filter-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  padding: 0;
  overflow: hidden;
  color: transparent;
  font-size: 0;
  line-height: 0;
}

.activity-filter-pin {
  width: 34px;
}

.activity-filter-toggle::before {
  content: "";
  width: 17px;
  height: 17px;
  display: block;
  background: currentColor;
  color: #334155;
  clip-path: polygon(8% 12%, 92% 12%, 61% 52%, 61% 80%, 42% 90%, 42% 52%);
}

.activity-filter-toggle svg {
  display: none;
}

.activity-filter-shell.is-open .activity-filter-toggle::before,
.activity-filter-shell.is-pinned .activity-filter-toggle::before {
  color: #1d4ed8;
}

.activity-filter-shell.is-open .activity-filter-bar,
.activity-filter-shell.is-pinned .activity-filter-bar {
  justify-content: space-between;
}

.activity-filter-shell:not(.is-open):not(.is-pinned) .activity-filter-pin {
  display: none;
}

.activity-filter-shell.is-pinned .activity-filter-pin,
.activity-filter-shell.is-open .activity-filter-toggle {
  border-color: #2563eb;
  background: #eaf2ff;
  color: #1d4ed8;
}

.activity-filter-shell.has-active-filters .activity-filter-toggle::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2563eb;
}

.activity-filter-form {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  background: #f8fafc;
}

.activity-filter-mobile-head {
  display: none;
}

.activity-filter-shell.is-open .activity-filter-form,
.activity-filter-shell.is-pinned .activity-filter-form {
  display: grid;
}

.activity-filter-form label,
.activity-add-grid label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.activity-filter-form label span,
.activity-add-grid label span {
  color: #475569;
  font-size: 0.86rem;
}

.activity-filter-form input,
.activity-filter-form select,
.activity-add-grid input,
.activity-add-grid select {
  width: 100%;
  min-height: 34px;
  box-sizing: border-box;
  border: 1px solid #d7dee8;
  border-radius: 6px;
  padding: 5px 8px;
  background: #fff;
}

.activity-filter-wide {
  grid-column: span 2;
}

.activity-filter-actions {
  display: flex;
  align-items: end;
  gap: 8px;
}

.activity-filter-actions button,
.activity-filter-actions .ov-btn {
  min-height: 34px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  margin-top: 0;
  font-size: 0.88rem;
  line-height: 1.2;
  text-decoration: none;
}

.activity-filter-form .supplier-filter-check {
  display: inline-flex;
  align-items: center;
  align-self: end;
  gap: 7px;
  min-height: 34px;
}

.activity-filter-form .supplier-filter-check input {
  width: 16px;
  height: 16px;
  min-height: 0;
  min-width: 0;
  padding: 0;
}

.case-list-filter .supplier-filter-check input {
  width: 13px;
  height: 13px;
}

.case-list-filter .case-list-per-page {
  margin-right: 5px;
}

.case-list-filter .activity-filter-actions {
  margin-left: 5px;
}

.activity-add-form {
  display: grid;
  gap: 14px;
}

.activity-add-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.activity-add-form > button[type="submit"] {
  justify-self: end;
  width: auto;
}

.activity-edit-panel {
  display: grid;
  gap: 14px;
}

.activity-edit-header,
.activity-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.activity-edit-header h2,
.activity-edit-header p,
.activity-edit-section h3,
.activity-section-heading h3 {
  margin: 0;
}

.activity-edit-header p {
  color: #64748b;
  font-size: 0.9rem;
}

.activity-edit-header__actions,
.profile-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-page-header {
  margin-bottom: 12px;
}

.profile-page-header h2,
.profile-page-header p {
  margin: 0;
}

.profile-page-header p {
  color: #64748b;
  font-size: 0.9rem;
}

.profile-password-form {
  max-width: 520px;
  margin-top: 14px;
}

.activity-edit-form {
  display: grid;
  gap: 14px;
}

.activity-edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.activity-edit-grid label,
.activity-file-link-label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.activity-edit-grid label > span,
.activity-file-link-label span {
  color: #475569;
  font-size: 0.86rem;
}

.activity-edit-grid input,
.activity-edit-grid select,
.activity-file-link-label select,
.activity-edit-section input[type="text"] {
  width: 100%;
  min-height: 34px;
  box-sizing: border-box;
  border: 1px solid #d7dee8;
  border-radius: 6px;
  padding: 5px 8px;
  background: #fff;
}

.activity-inline-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.activity-inline-control select {
  min-width: 0;
  flex: 1 1 auto;
}

.activity-edit-section {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
}

.activity-description-section {
  background: #fff;
}

.description-view {
  min-height: 80px;
  padding: 10px;
  border: 1px solid #d7dee8;
  border-radius: 7px;
  background: #fff;
  overflow-wrap: anywhere;
}

.activity-edit-table {
  background: #fff;
}

.activity-edit-table input[type="text"],
.activity-edit-table select {
  max-width: 100%;
  min-height: 32px;
  box-sizing: border-box;
  border: 1px solid #d7dee8;
  border-radius: 6px;
  padding: 4px 7px;
  background: #fff;
}

.activity-edit-table button {
  width: auto;
  min-height: 32px;
  margin: 0 4px 4px 0;
  padding: 5px 9px;
  font-size: 0.86rem;
}

.activity-form-actions {
  position: sticky;
  bottom: 10px;
  z-index: 20;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 8px 0;
  background: linear-gradient(to right, rgba(255,255,255,0), #fff 35%);
}

.activity-form-actions .ov-btn {
  width: auto;
}

.activity-panel {
  padding: 15px;
  border: 1px solid #d7dee8;
  border-radius: 0 8px 8px 8px;
  background: #fff;
  overflow-x: auto;
}

.activity-list-table {
  border-collapse: collapse;
}

.activity-list-table th,
.activity-list-table td {
  border: 0;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
}

.activity-list-table td.omschrijving {
  display: table-cell;
  max-width: none;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.activity-list-table th {
  background: #eef2f7;
  color: #111827;
  font-weight: 700 !important;
}

.activity-list-table th a {
  color: inherit;
  text-decoration: none;
}

.activity-list-table tr:nth-child(even) {
  background: transparent;
}

.activity-list-table tr:hover {
  background: #f8fafc;
}

.portal-list-table {
  border-collapse: collapse;
}

.portal-list-table th,
.portal-list-table td {
  border: 0;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
}

.portal-list-table th {
  background: #eef2f7;
  color: #111827;
  font-weight: 700 !important;
}

.portal-list-table th a {
  color: inherit;
  text-decoration: none;
}

.portal-list-table tr:nth-child(even) {
  background: transparent;
}

.portal-list-table tr:hover {
  background: #f8fafc;
}

.activity-description-cell {
  overflow-wrap: anywhere;
}

.activity-description-button {
  display: inline;
  max-width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #0f5fb8;
  font: inherit;
  font-weight: 500;
  line-height: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  vertical-align: baseline;
}

.activity-description-button:hover,
.activity-description-button:focus-visible {
  color: #0a4d96;
  text-decoration: underline;
}

.activity-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.activity-status--open {
  background: #eef2f7;
  color: #334155;
}

.activity-status--in_progress {
  background: #dbeafe;
  color: #1e40af;
}

.activity-status--done {
  background: #d1e7dd;
  color: #0f5132;
}

.activity-progress {
  min-width: 120px;
}

.activity-progress__label {
  margin-bottom: 4px;
  color: #475569;
  font-size: 0.84rem;
}

.activity-progress__track {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.activity-progress__bar {
  height: 100%;
  border-radius: inherit;
  background: #198754;
}

.activity-muted {
  color: #64748b;
}

.activity-actions,
.activity-file-row__actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.activity-file-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  max-width: 100%;
  min-height: 30px;
  padding: 6px 14px !important;
  white-space: nowrap;
}

.activity-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  margin: 0;
  border: 1px solid #d7dee8;
  border-radius: 6px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.activity-icon-btn:hover {
  border-color: #9db5d4;
  background: #f0f8ff;
  color: #0d6efd;
  text-decoration: none;
}

.activity-bulkbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  background: #f8fafc;
}

.activity-bulkbar__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.activity-bulkbar__summary span {
  color: #64748b;
  font-size: 0.9rem;
}

.activity-bulkbar__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.activity-popup-overlay {
  z-index: 6000;
  align-items: flex-start;
  box-sizing: border-box;
  padding: 112px 18px 22px;
  background: rgba(15, 23, 42, 0.38);
}

.activity-popup {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;
  width: min(620px, calc(100vw - 36px));
  max-width: none;
  max-height: min(68vh, 620px);
  padding: 0;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.24);
}

.activity-popup__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 14px 9px;
  border-bottom: 1px solid #e5e7eb;
  background: #f8fafc;
}

.activity-popup__header h3,
.activity-popup__header p,
.activity-file-list h4 {
  margin: 0;
}

.activity-popup__header h3 {
  font-size: 1rem;
  line-height: 1.2;
}

.activity-popup__header p {
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.25;
}

.activity-popup__close {
  position: static;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #d7dee8;
  border-radius: 6px;
  background: #fff;
  color: #334155;
  font-size: 22px;
  line-height: 1;
  flex: 0 0 auto;
}

.activity-popup__body {
  display: grid;
  gap: 10px;
  min-height: 0;
  padding: 12px 14px 14px;
  overflow-y: auto;
}

.activity-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.activity-detail-item {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  background: #f8fafc;
}

.activity-detail-item--wide {
  grid-column: 1 / -1;
}

.activity-detail-item span {
  color: #475569;
  font-size: 0.78rem;
  font-weight: 700;
}

.activity-detail-item strong {
  margin: 0;
  color: #111827;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.activity-file-list {
  display: grid;
  gap: 8px;
}

.activity-file-list h4 {
  font-size: 0.98rem;
}

.activity-file-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  background: #fff;
}

.activity-file-row__name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.activity-preview-popup {
  width: min(760px, calc(100vw - 36px));
  max-height: min(68vh, 620px);
}

.activity-preview-content {
  min-height: 0;
  padding: 12px 14px 14px;
  overflow-y: auto;
}

.activity-preview-content iframe {
  width: 100%;
  height: min(54vh, 520px);
  border: 1px solid #e5e7eb;
  border-radius: 7px;
}

.activity-preview-content img {
  display: block;
  max-width: 100%;
  max-height: min(54vh, 520px);
  margin: 0 auto;
  border-radius: 7px;
}

.activity-confirm-dialog .ov-dialog-form {
  gap: 10px;
}

@media (max-width: 768px) {
  .activity-panel {
    padding: 10px;
    overflow-x: visible;
  }

  .activities-table.activities-table--mobile-cards.activity-list-table tr {
    border: 1px solid #d7dee8;
    border-radius: 8px;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.05);
  }

  .activities-table.activities-table--mobile-cards.activity-list-table td {
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #edf2f7;
  }

  .activities-table.activities-table--mobile-cards.activity-list-table td::before {
    content: attr(data-label);
    display: block;
    flex: 0 0 42%;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 700;
  }

  .activities-table.activities-table--mobile-cards.activity-list-table td.omschrijving,
  .activities-table.activities-table--mobile-cards.activity-list-table td[data-label="Acties"],
  .activities-table.activities-table--mobile-cards.activity-list-table td[data-label="Selectie"] {
    display: flex;
  }

  .activity-bulkbar {
    align-items: stretch;
    flex-direction: column;
  }

  .activity-bulkbar__actions {
    justify-content: flex-start;
  }

  .portal-list-table thead {
    display: none;
  }

  .portal-list-table,
  .portal-list-table tbody {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .portal-list-table tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.05);
  }

  .portal-list-table td {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 0;
    border-bottom: 1px solid #edf2f7;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .portal-list-table td:last-child {
    border-bottom: 0;
  }

  .portal-list-table td::before {
    content: attr(data-label);
    display: block;
    flex: 0 0 42%;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.35;
  }

  .portal-list-table td[data-label="Omschrijving"],
  .portal-list-table td[data-label="Beschrijving"],
  .portal-list-table td[data-label="Actie"],
  .portal-list-table td[data-label="Acties"],
  .portal-list-table td[data-label="Selectie"],
  .portal-list-table td[data-label=""] {
    display: block;
  }

  .portal-list-table td[data-label="Omschrijving"]::before,
  .portal-list-table td[data-label="Beschrijving"]::before,
  .portal-list-table td[data-label="Actie"]::before,
  .portal-list-table td[data-label="Acties"]::before,
  .portal-list-table td[data-label="Selectie"]::before,
  .portal-list-table td[data-label=""]::before {
    display: none;
  }

  .portal-list-table td[data-label="Klant"] {
    display: block;
  }

  .portal-list-table td[data-label="Klant"]::before {
    display: block;
    margin-bottom: 4px;
  }

  .portal-list-table td[data-label="Klant"] strong,
  .portal-list-table td[data-label="Klant"] small {
    display: block;
  }

  .portal-list-table td[data-label="Klant"] small {
    margin-top: 2px;
  }

  .activity-detail-grid {
    grid-template-columns: 1fr;
  }

  .activity-popup-overlay {
    padding: 68px 10px 14px;
  }

  .activity-popup,
  .activity-preview-popup {
    width: min(520px, calc(100vw - 20px));
    max-height: calc(100vh - 92px);
  }

  .activity-file-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .activity-file-row__actions {
    flex-wrap: wrap;
  }

  .portal-list-table td.activity-file-actions-cell {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
  }

  .activity-file-action-btn {
    flex: 0 1 auto;
    min-height: 32px;
    padding: 6px 14px !important;
  }

  .portal-list-table td .activity-file-action-btn {
    max-width: 100%;
  }

  .activity-edit-header,
  .activity-section-heading,
  .activity-inline-control {
    align-items: stretch;
    flex-direction: column;
  }

  .activity-edit-header__actions,
  .profile-page-header {
    align-items: stretch;
    flex-direction: column;
  }

  .activity-inline-control .ov-btn,
  .activity-form-actions .ov-btn,
  .activity-add-form > button[type="submit"],
  .activity-edit-header__actions .ov-btn,
  .profile-page-header .ov-btn {
    width: auto;
    align-self: flex-end;
  }

  .activities-table.activities-table--mobile-cards.activity-edit-table td::before {
    flex: 0 0 40%;
  }

  .activity-edit-table td:nth-child(1)::before {
    content: "Subactiviteit";
  }

  .activity-edit-table td:nth-child(2)::before {
    content: "Bestanden";
  }

  .activity-edit-table td:nth-child(3)::before {
    content: "Status";
  }

  .activity-edit-table td:nth-child(4)::before {
    content: "Laatst gewijzigd";
  }

  .activity-edit-table td:nth-child(5)::before {
    content: "Acties";
  }

  #existingFilesWrapper .activity-edit-table td:nth-child(1)::before {
    content: "Bestandsnaam";
  }

  #existingFilesWrapper .activity-edit-table td:nth-child(2)::before {
    content: "Subactiviteit";
  }

  #existingFilesWrapper .activity-edit-table td:nth-child(3)::before {
    content: "Ext";
  }

  #existingFilesWrapper .activity-edit-table td:nth-child(4)::before {
    content: "Geupload op";
  }

  #existingFilesWrapper .activity-edit-table td:nth-child(5)::before {
    content: "Geupload door";
  }

  #existingFilesWrapper .activity-edit-table td:nth-child(6)::before {
    content: "Preview / Download";
  }

  #existingFilesWrapper .activity-edit-table td:nth-child(7)::before {
    content: "Acties";
  }
}

.ov-page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ov-page-heading h1 {
  margin: 0;
}

@media (max-width: 700px) {
  .activity-filter-wide {
    grid-column: auto;
  }
}

/* ===============================
   TOPNAV LAYOUT
   =============================== */

.mobile-header,
.headermenu__hamburger,
.sidebar-overlay {
  display: none !important;
}

.layout {
  display: block;
  min-height: auto;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 2000;
  width: auto;
  min-height: 0;
  height: auto;
  padding: 8px 14px 0;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  align-items: end;
  column-gap: 12px;
  background: #f8fafc;
  border-bottom: 1px solid #d7dee8;
}

.sidebar > a {
  display: inline-flex;
  align-items: center;
  align-self: end;
  flex: 0 0 auto;
  min-height: 0;
  padding: 15px;
  box-sizing: border-box;
}

.sidebar > a img {
  width: 100px !important;
  height: auto;
  display: block;
}

.content {
  padding: 16px 18px 24px;
}

.topnav {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}

.topnav__primary {
  display: grid;
  gap: 7px;
  flex: 1 1 auto;
  min-width: 0;
}

.topnav__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  justify-content: flex-start;
  border-bottom: 0px solid #d7dee8;
}

.global-search {
  position: relative;
  width: min(720px, 100%);
}

.global-search__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.global-search__input {
  width: 100%;
  min-height: 34px;
  box-sizing: border-box;
  border: 1px solid #d7dee8;
  border-radius: 7px;
  background: #fff;
  padding: 6px 10px;
  color: #111827;
  font-size: 0.92rem;
  transform: none;
}

.global-search__input:focus {
  outline: 2px solid #bfdbfe;
  border-color: #2563eb;
}

.global-search__results {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  z-index: 4200;
  width: min(720px, calc(100vw - 36px));
  max-height: min(520px, calc(100vh - 130px));
  overflow-y: auto;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

.global-search__state,
.global-search__group {
  padding: 10px;
}

.global-search__state {
  color: #64748b;
}

.global-search__group + .global-search__group {
  border-top: 1px solid #eef2f7;
}

.global-search__group-title {
  margin: 0 0 6px;
  color: #475569;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.global-search__item {
  display: grid;
  gap: 2px;
  padding: 7px 8px;
  border-radius: 6px;
  color: #111827;
  text-decoration: none;
}

.global-search__item:hover,
.global-search__item.is-active {
  background: #eff6ff;
}

.global-search__item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.global-search__item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #64748b;
  font-size: 0.84rem;
}

.global-results-panel,
.global-results-groups,
.global-results-group,
.global-results-list {
  display: grid;
  gap: 12px;
}

.global-results-form {
  display: flex;
  gap: 8px;
  align-items: center;
  max-width: 780px;
}

.global-results-form input[type="search"] {
  flex: 1 1 auto;
  min-height: 36px;
  box-sizing: border-box;
  border: 1px solid #d7dee8;
  border-radius: 7px;
  padding: 6px 10px;
  transform: none;
}

.global-results-group {
  padding-top: 4px;
}

.global-results-group h2 {
  margin: 0;
  color: #334155;
  font-size: 1rem;
}

.global-results-list {
  gap: 7px;
}

.global-results-item {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  background: #fff;
  color: #111827;
  text-decoration: none;
}

.global-results-item:hover {
  border-color: #9db5d4;
  background: #f8fafc;
}

.global-results-item span {
  color: #64748b;
  font-size: 0.88rem;
}

.assortment-products-panel,
.assortment-product-detail {
  display: grid;
  gap: 14px;
}

.assortment-product-search-form {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(260px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.assortment-product-search-form select,
.assortment-product-search-form input[type="search"] {
  width: 100%;
  min-height: 36px;
  box-sizing: border-box;
  border: 1px solid #d7dee8;
  border-radius: 7px;
  background: #fff;
  padding: 6px 10px;
  transform: none;
}

.assortment-products-table td {
  vertical-align: top;
}

.assortment-product-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(420px, 1.2fr);
  gap: 14px;
  align-items: start;
}

.assortment-detail-table {
  width: 100%;
  border-collapse: collapse;
}

.assortment-detail-table th,
.assortment-detail-table td {
  padding: 7px 8px;
  border: 1px solid #e2e8f0;
  vertical-align: top;
}

.assortment-detail-table th {
  width: 220px;
  background: #f8fafc;
  color: #475569;
  font-weight: normal;
}

.assortment-detail-table td {
  word-break: break-word;
}

.assortment-supplier-raw-list {
  display: grid;
  gap: 14px;
}

.assortment-supplier-raw h4 {
  margin: 0 0 8px;
  color: #334155;
}

.ov-page-heading-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.assortment-order-dialog {
  width: min(480px, calc(100vw - 28px));
}

.assortment-order-dialog__field {
  display: grid;
  gap: 5px;
}

.assortment-order-dialog__field select,
.assortment-order-dialog__field input[type="number"] {
  width: 100%;
  min-height: 34px;
  box-sizing: border-box;
  border: 1px solid #d7dee8;
  border-radius: 7px;
  background: #fff;
  padding: 5px 8px;
}

.assortment-pending-order-item {
  display: block;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .assortment-product-search-form,
  .assortment-product-grid {
    grid-template-columns: 1fr;
  }

  .assortment-detail-table th,
  .assortment-detail-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 768px) {
  .assortment-products-table.activities-table--mobile-cards tr {
    position: relative;
  }

  .assortment-products-table.activities-table--mobile-cards td[data-label="Omschrijving"] {
    order: -2;
    grid-template-columns: 1fr;
    background: #f8fafc;
    font-weight: 700;
  }

  .assortment-products-table.activities-table--mobile-cards td[data-label="Omschrijving"]::before {
    display: none;
  }

  .assortment-products-table.activities-table--mobile-cards td[data-label="Productnummer"] {
    order: -1;
    color: #64748b;
    font-size: 0.84rem;
  }

  .assortment-products-table.activities-table--mobile-cards td[data-label="Leveranciers"] {
    display: none;
  }
}

@media (max-width: 768px) {
  .form-table,
  .form-table tbody,
  .form-table tr,
  .form-table td {
    display: block;
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
  }

  .form-table tr {
    margin-bottom: 10px;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
  }

  .form-table td {
    border: 0;
    border-bottom: 1px solid #eef2f7;
  }

  .form-table td:last-child {
    border-bottom: 0;
  }

  .form-table td:first-child {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
    background: #f8fafc;
  }

  .form-table input:not([type="checkbox"]):not([type="radio"]),
  .form-table select,
  .form-table textarea {
    width: 100%;
  }

  .permissions-override-table.activities-table--mobile-cards td[data-label="Rol"],
  .permissions-override-table.activities-table--mobile-cards td[data-label="Toestaan"],
  .permissions-override-table.activities-table--mobile-cards td[data-label="Weigeren"] {
    grid-template-columns: 1fr;
  }

  .permissions-override-table.activities-table--mobile-cards td {
    display: grid;
    grid-template-columns: minmax(96px, 34%) minmax(0, 1fr);
    align-items: center;
  }

  .permissions-override-table.activities-table--mobile-cards td::before {
    display: block;
    content: attr(data-label);
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
  }

  .permissions-override-table.activities-table--mobile-cards td[data-label="Rol"]::before,
  .permissions-override-table.activities-table--mobile-cards td[data-label="Toestaan"]::before,
  .permissions-override-table.activities-table--mobile-cards td[data-label="Weigeren"]::before {
    display: none;
  }

  .permission-choice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
    color: #111827;
    font-weight: 600;
    text-align: left;
  }

  .order-notification-table.activities-table--mobile-cards td[data-label="Template"],
  .order-notification-table.activities-table--mobile-cards td[data-label="Actief"] {
    grid-template-columns: 1fr;
  }

  .order-notification-table.activities-table--mobile-cards td {
    display: grid;
    grid-template-columns: minmax(96px, 34%) minmax(0, 1fr);
    align-items: center;
  }

  .order-notification-table.activities-table--mobile-cards td::before {
    display: block;
    content: attr(data-label);
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
  }

  .order-notification-table.activities-table--mobile-cards td[data-label="Template"]::before,
  .order-notification-table.activities-table--mobile-cards td[data-label="Actief"]::before {
    margin-bottom: 2px;
  }

  .order-notification-table select {
    width: 100%;
    min-width: 0;
  }
}

.permission-choice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topnav__tab,
.topnav__icon {
  border-bottom: 0;
  text-decoration: none;
  box-sizing: border-box;
  font-weight: 400;
}

.topnav__tab {
  border: 1px solid #d7dee8;
  border-bottom: 0;
  background: #f8fafc;
  color: #334155;
}

.topnav__icon {
  border: 1px solid #d7dee8;
  border-bottom: 0;
  background: #f8fafc;
  color: #334155;
}

.topnav__tab {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 11px;
  border-radius: 7px 7px 0 0;
  font-size: 0.92rem;
  white-space: nowrap;
}

.topnav__tab:hover {
  border-color: #9db5d4;
  border-bottom: 0;
  background: #f0f8ff;
  color: #334155;
}

.topnav__icon:hover {
  border-color: #9db5d4;
  background: #f0f8ff;
}

.topnav__tab.is-active {
  border-color: rgb(120, 152, 201);
  border-bottom: 0;
  background: rgb(120, 152, 201);
  color: #fff;
  font-weight: 400;
  box-shadow: none;
}

.topnav__icon.is-active {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
  font-weight: 400;
}

.topnav__actions {
  display: inline-flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 6px;
  flex: 0 0 auto;
  padding-top: 4px;
  margin-left: auto;
}

.topnav__icon {
  width: 36px;
  min-height: 34px;
  border-radius: 7px 7px 0 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.topnav__icon svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.topnav__icon--logout {
  color: #7f1d1d;
  background: #fff7f7;
}

.topnav__badge {
  position: absolute;
  right: -5px;
  top: -7px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  box-shadow: 0 0 0 2px #f8fafc;
}

.topnav__notification-bell {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 10px;
  height: 9px;
  border-radius: 8px 8px 4px 4px;
  border: 1.5px solid #92400e;
  border-top-width: 2px;
  background: #fbbf24;
  animation: notification-ring 1.1s ease-in-out infinite;
}

.topnav__notification-bell::before {
  content: "";
  position: absolute;
  left: 3px;
  top: -3px;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: #92400e;
}

.topnav__notification-bell::after {
  content: "";
  position: absolute;
  left: 3px;
  bottom: -3px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #92400e;
}

@keyframes notification-ring {
  0%, 100% { transform: rotate(0deg) scale(1); }
  20% { transform: rotate(-18deg) scale(1.08); }
  40% { transform: rotate(16deg) scale(1.08); }
  60% { transform: rotate(-10deg) scale(1.04); }
  80% { transform: rotate(8deg) scale(1.02); }
}

.topnav__more-wrap {
  position: relative;
  display: none;
}

.topnav__more-toggle {
  cursor: pointer;
}

.topnav__more-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 4100;
  min-width: 150px;
  overflow: hidden;
  border: 1px solid #d7dee8;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
}

.topnav__more-menu[hidden] {
  display: none;
}

.topnav__more-menu a {
  display: block;
  padding: 10px 12px;
  color: #334155;
  text-decoration: none;
  white-space: nowrap;
}

.topnav__more-menu a:hover {
  background: #f0f8ff;
}

.messages-workspace {
  display: grid;
  grid-template-columns: minmax(260px, 33%) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.messages-sidebar,
.messages-main {
  min-width: 0;
}

.messages-main .ov-btn-small {
  min-height: 28px;
  padding: 4px 8px;
  font-size: 0.8rem;
}

.messages-sidebar {
  display: grid;
  gap: 12px;
}

.messages-folders {
  display: grid;
  overflow: hidden;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  background: #fff;
}

.messages-folders a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border-bottom: 1px solid #edf2f7;
  color: #334155;
  text-decoration: none;
}

.messages-folders a:last-child {
  border-bottom: 0;
}

.messages-folders a.is-active {
  background: #eef5ff;
  color: #0f3f83;
  font-weight: 700;
}

.messages-folders strong {
  min-width: 24px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #e5e7eb;
  color: #334155;
  font-size: 0.76rem;
  text-align: center;
}

.inbox-compose-form {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  background: #fff;
}

.inbox-compose-form h3 {
  margin: 0 0 2px;
  font-size: 1rem;
}

.inbox-compose-form label {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.inbox-compose-form label span {
  padding-top: 7px;
  color: #475569;
  font-size: 0.84rem;
  font-weight: 700;
}

.inbox-compose-form input,
.inbox-compose-form select,
.inbox-compose-form textarea {
  width: 100%;
  min-height: 34px;
  border: 1px solid #d7dee8;
  border-radius: 7px;
  background: #fff;
  padding: 6px 8px;
}

.inbox-compose-form textarea {
  resize: vertical;
}

.inbox-compose-form .ov-btn {
  justify-self: start;
  margin-left: 83px;
}

.messages-mobile-sections {
  display: none;
}

.messages-filter-form {
  display: grid;
  grid-template-columns: minmax(140px, 180px) minmax(180px, 1fr) auto;
  gap: 8px;
  margin: 10px 0 12px;
}

.messages-filter-form select,
.messages-filter-form input {
  min-height: 34px;
  border: 1px solid #d7dee8;
  border-radius: 7px;
  background: #fff;
  padding: 6px 8px;
}

.messages-bulkbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.messages-bulkbar .ov-btn {
  min-height: 26px;
  padding: 3px 8px;
  font-size: 0.78rem;
}

.messages-empty-form {
  margin-top: 10px;
}

.messages-list {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.messages-select-all {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #334155;
  font-size: 0.9rem;
}

.messages-mark-read-btn {
  justify-self: start;
  width: auto;
  min-height: 26px;
  padding: 3px 8px;
  font-size: 0.78rem;
}

.message-card__title {
  color: #064ba7;
  font-weight: 700;
  text-decoration: none;
}

.message-card__title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.message-read-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.message-read-badge.is-unread {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.message-read-badge.is-read {
  background: #e5e7eb;
  color: #475569;
}

.message-card__title:hover {
  text-decoration: underline;
}

.message-detail-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  background: #fff;
}

.message-detail-card header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.message-detail-top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.message-detail-top-actions form {
  margin: 0;
}

.message-detail-card h3,
.message-detail-card p {
  margin: 0;
}

.message-detail-body {
  padding: 12px;
  border: 1px solid #e5ebf3;
  border-radius: 8px;
  background: #f8fafc;
  line-height: 1.5;
}

.message-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.messages-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.messages-pagination a {
  min-width: 30px;
  padding: 6px 9px;
  border: 1px solid #d7dee8;
  border-radius: 6px;
  background: #fff;
  color: #334155;
  text-align: center;
  text-decoration: none;
}

.messages-pagination a.is-active {
  border-color: #7898c9;
  background: #7898c9;
  color: #fff;
}

.message-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  background: #fff;
}

.message-card.is-unread {
  border-color: #2563eb;
  background: #f7fbff;
  box-shadow: inset 4px 0 0 #2563eb;
}

.message-card__body header,
.message-card__body footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.message-card__body p {
  margin: 6px 0;
}

.chat-shell {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  min-height: 500px;
  height: min(500px, calc(100dvh - 190px));
  overflow: hidden;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  background: #fff;
}

.chat-mobile-overview-bar {
  display: none;
}

.chat-user-list {
  min-width: 0;
  overflow-y: auto;
  border-right: 1px solid #d7dee8;
  background: #f8fafc;
}

.chat-user {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  border-bottom: 1px solid #e5ebf3;
  color: #334155;
  text-decoration: none;
}

.chat-user.is-active {
  background: #eef5ff;
}

.chat-user.is-unread strong {
  color: #0f3f83;
}

.chat-user__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #7898c9;
  color: #fff;
  font-weight: 700;
  overflow: hidden;
  flex: 0 0 38px;
}

.chat-user__avatar img,
.profile-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-user__main {
  min-width: 0;
}

.chat-user__main strong,
.chat-user__main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-user__main small {
  color: #64748b;
}

.chat-user em {
  min-width: 19px;
  height: 19px;
  border-radius: 999px;
  background: #22c55e;
  color: #fff;
  font-size: 0.72rem;
  font-style: normal;
  line-height: 19px;
  text-align: center;
}

.chat-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  min-width: 0;
  min-height: 500px;
  max-height: min(500px, calc(100dvh - 190px));
}

.chat-panel__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #d7dee8;
  background: #fff;
}

.chat-panel__header strong {
  min-width: 0;
  flex: 1;
}

.chat-back-link {
  display: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid #d7dee8;
  border-radius: 999px;
  color: #334155;
  text-decoration: none;
  font-size: 1.6rem;
  line-height: 1;
}

.chat-more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #d7dee8;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  cursor: pointer;
}

.chat-more-wrap {
  position: relative;
}

.chat-more-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 20;
  min-width: 170px;
  padding: 6px;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
}

.chat-more-menu[hidden] {
  display: none;
}

.chat-more-menu button {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #334155;
  text-align: left;
  cursor: pointer;
}

.chat-more-menu button:hover {
  background: #f0f6ff;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  min-height: 0;
  padding: 16px;
  background: #f4f7fb;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.chat-messages::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.chat-load-more {
  align-self: center;
  padding: 6px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 0.82rem;
  cursor: pointer;
}

.chat-load-more[hidden] {
  display: none;
}

.chat-typing-indicator {
  min-height: 24px;
  padding: 4px 16px 0;
  background: #f4f7fb;
  color: #64748b;
  font-size: 0.82rem;
  font-style: italic;
}

.chat-typing-indicator[hidden] {
  display: none;
}

.chat-bubble {
  width: fit-content;
  max-width: min(680px, 78%);
  padding: 9px 11px 6px;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  background: #fff;
}

.chat-bubble.is-mine {
  align-self: flex-end;
  border-color: #b9d7f3;
  background: #e7f2ff;
}

.chat-bubble.is-theirs {
  align-self: flex-start;
  border-color: #b7d4b8;
  background: #e7f7e7;
}

.chat-bubble p {
  margin: 0;
  line-height: 1.45;
}

.chat-bubble footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
  color: #64748b;
  font-size: 0.72rem;
}

.chat-proposal-card {
  display: grid;
  gap: 7px;
  margin-top: 8px;
  padding: 9px;
  border: 1px solid #c7d7ea;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.chat-proposal-card > strong {
  color: #1f2937;
  font-size: 0.92rem;
}

.chat-proposal-card p {
  margin: 0;
  color: #475569;
  font-size: 0.86rem;
}

.chat-proposal-card dl {
  display: grid;
  gap: 4px;
  margin: 0;
}

.chat-proposal-card dl div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 8px;
}

.chat-proposal-card dt,
.chat-proposal-card dd {
  margin: 0;
  font-size: 0.8rem;
}

.chat-proposal-card dt {
  color: #64748b;
  font-weight: 700;
}

.chat-proposal-card dd {
  color: #334155;
}

.chat-proposal-card .ov-btn {
  justify-self: start;
}

.chat-proposal-status {
  justify-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 0.78rem;
  font-weight: 700;
}

.chat-toast {
  margin: 0;
  padding: 6px 12px;
  border-top: 1px solid #d7dee8;
  background: #ecfdf5;
  color: #166534;
  font-size: 0.84rem;
  font-weight: 700;
}

.chat-toast[hidden] {
  display: none;
}

.chat-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid #d7dee8;
  background: #fff;
}

.chat-compose textarea {
  min-height: 42px;
  max-height: 140px;
  resize: none;
}

.chat-send-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
}

.chat-send-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.chat-action-dialog {
  max-width: min(560px, calc(100vw - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
}

.chat-action-dialog::backdrop {
  background: rgba(15, 23, 42, 0.35);
}

.chat-empty {
  display: grid;
  place-content: center;
  min-height: 420px;
  color: #64748b;
  text-align: center;
}

.todo-layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.todo-form-panel {
  min-width: 0;
  padding: 0;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.todo-table-wrap {
  min-width: 0;
  overflow-x: auto;
}

.todo-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.todo-filter-bar a {
  padding: 6px 10px;
  border: 1px solid #d7dee8;
  border-radius: 7px;
  background: #fff;
  color: #334155;
  text-decoration: none;
}

.todo-filter-bar a.is-active {
  border-color: #7898c9;
  background: #7898c9;
  color: #fff;
}

.todo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.todo-mobile-add {
  display: none;
}

.todo-add-dialog {
  width: min(560px, calc(100vw - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
}

.todo-add-dialog::backdrop {
  background: rgba(15, 23, 42, 0.35);
}

.todo-add-form {
  position: relative;
  gap: 0;
  padding: 14px 18px 16px;
  overflow: hidden;
}

.todo-add-form--panel {
  padding: 14px 14px 16px;
}

.todo-add-form--panel .todo-add-form__row {
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 10px;
}

.todo-add-form--panel .todo-add-form__actions {
  justify-content: flex-start;
  padding-left: 118px;
}

.todo-add-form__header {
  padding: 0 36px 12px 0;
  border-bottom: 0;
  background: transparent;
}

.todo-add-form__header h3 {
  margin: 0;
  font-size: 1.02rem;
}

.todo-add-form__grid {
  display: grid;
  gap: 0;
  padding: 0;
}

.todo-add-form__row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 0;
}

.todo-add-form__row--textarea {
  align-items: start;
}

.todo-add-form__row span {
  color: #475569;
  font-size: 0.86rem;
  font-weight: 700;
}

.todo-add-form__row input,
.todo-add-form__row textarea {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  box-sizing: border-box;
  border: 1px solid #d7dee8;
  border-radius: 7px;
  background: #fff;
  padding: 6px 8px;
}

.todo-add-form__row textarea {
  min-height: 88px;
  resize: vertical;
}

.todo-add-form__actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 14px 0 0 142px;
  background: #fff;
}

.todo-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.todo-table th,
.todo-table td {
  padding: 10px;
  border-bottom: 1px solid #e5ebf3;
  text-align: left;
  vertical-align: top;
}

.todo-table th {
  background: #eef2f7;
  color: #0f172a;
}

.todo-table tr.is-completed {
  opacity: 0.68;
}

.todo-table tr.is-completed strong {
  text-decoration: line-through;
}

.todo-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid #9db5d4;
  border-radius: 999px;
  background: #fff;
  color: #15803d;
  font-weight: 700;
  cursor: pointer;
}

.profile-photo-panel {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  background: #fff;
}

.profile-photo-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  border-radius: 999px;
  overflow: hidden;
  background: #7898c9;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  flex: 0 0 74px;
}

.profile-photo-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}

.profile-photo-form label {
  display: grid;
  gap: 5px;
}

@media (max-width: 900px) {
  .mobile-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 3600;
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 62px;
    padding: 0;
    box-sizing: border-box;
    background: #f8fafc;
    border-bottom: 1px solid #d7dee8;
  }

  body.menu-open .mobile-header {
    display: flex !important;
  }

  .headermenu__hamburger {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 34px;
    min-height: 34px;
    margin: 0;
    padding: 0;
    border: 1px solid #d7dee8;
    border-radius: 7px 7px 0 0;
    background: #f8fafc;
    color: #334155;
    font-size: 0;
    cursor: pointer;
  }

  .headermenu__hamburger::before {
    content: "\2630";
    font-size: 20px;
    line-height: 1;
  }

  .mobile-search-toggle {
    position: absolute;
    left: 54px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 34px;
    min-height: 34px;
    margin: 0;
    padding: 0;
    border: 1px solid #d7dee8;
    border-radius: 7px 7px 0 0;
    background: #f8fafc;
    color: #334155;
    cursor: pointer;
  }

  .mobile-search-toggle svg {
    width: 18px;
    height: 18px;
  }

  .mobile-header__logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-header__logo img {
    width: 74px;
    height: auto;
    display: block;
  }

  .sidebar {
    position: fixed;
    top: 62px;
    left: -80vw;
    z-index: 3800;
    width: 80vw;
    max-width: 360px;
    height: calc(100dvh - 62px);
    min-height: 0;
    padding: 12px;
    display: block;
    background: #f8fafc;
    border-right: 1px solid #d7dee8;
    border-bottom: 0;
    box-shadow: 18px 0 36px rgba(15, 23, 42, 0.16);
    transition: left 0.2s ease;
    overflow-y: auto;
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar.is-open {
    left: 0;
  }

  .sidebar > a {
    display: none;
  }

  .sidebar-overlay {
    display: none !important;
    position: fixed;
    top: 62px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2500;
    background: rgba(15, 23, 42, 0.35);
  }

  body.menu-open .sidebar-overlay {
    display: block !important;
    top: 62px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2500;
  }

  body.menu-open {
    overflow: hidden;
  }

  .topnav {
    display: block;
    width: 100%;
  }

  .topnav__primary {
    display: block;
  }

  .global-search {
    display: none;
  }

  .mobile-search-overlay {
    position: fixed;
    top: 62px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 3550;
    display: block;
    padding: 10px;
    box-sizing: border-box;
    background: #f8fafc;
    overflow: hidden;
  }

  .mobile-search-overlay[hidden] {
    display: none;
  }

  body.mobile-search-open {
    overflow: hidden;
  }

  .mobile-search-overlay__bar {
    display: flex;
    align-items: flex-start;
    gap: 8px;
  }

  .mobile-search-overlay .mobile-global-search {
    position: relative;
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    max-width: none;
  }

  .mobile-search-overlay .global-search__input {
    width: 100%;
    min-height: 40px;
    box-sizing: border-box;
    border-radius: 7px;
    background: #fff;
  }

  .mobile-search-overlay .global-search__results {
    position: fixed;
    top: 114px;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    max-height: none;
    border: 0;
    border-top: 1px solid #d7dee8;
    border-radius: 0;
    box-shadow: none;
    overflow-y: auto;
    background: #fff;
  }

  .mobile-search-close {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border: 1px solid #d7dee8;
    border-radius: 7px;
    background: #fff;
    color: #334155;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
  }

  .topnav__tabs {
    display: block;
    gap: 0;
    padding-top: 0;
    border-bottom: 0;
  }

  .topnav__tab {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 38px;
    padding: 9px 2px;
    border: 0;
    border-bottom: 1px solid #d7dee8;
    border-radius: 0;
    background: transparent;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 400;
  }

  .topnav__tab:hover {
    border-bottom: 1px solid #d7dee8;
    background: transparent;
    color: #1f3b63;
  }

  .topnav__tab.is-active {
    border: 0;
    border-bottom: 1px solid #d7dee8;
    background: transparent;
    color: rgb(120, 152, 201);
    font-weight: 400;
    box-shadow: none;
  }

  .topnav__tab:last-child {
    border-bottom: 0;
  }

  .topnav__actions {
    position: fixed;
    top: 14px;
    right: 10px;
    z-index: 3900;
    display: inline-flex;
    gap: 6px;
    padding-top: 0;
    margin-left: 0;
  }

  .topnav__icon {
    width: 34px;
    min-height: 34px;
    border-bottom: 1px solid #d7dee8;
    background: #f8fafc;
  }

  .topnav__icon.is-active {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
  }

  .topnav__icon--logout {
    background: #fff7f7;
  }

  .topnav__actions > .topnav__icon--settings,
  .topnav__actions > .topnav__icon--logout {
    display: none;
  }

  .topnav__more-wrap {
    display: inline-flex;
  }

  .topnav__more-wrap .topnav__icon {
    width: 34px;
    min-height: 34px;
    border-bottom: 1px solid #d7dee8;
    background: #f8fafc;
  }

  .topnav__more-menu {
    position: fixed;
    top: 54px;
    right: 10px;
  }

  .message-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .messages-mobile-sections {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 10px;
  }

  .messages-mobile-sections a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 8px;
    border: 1px solid #d7dee8;
    border-radius: 7px;
    background: #fff;
    color: #334155;
    font-size: 0.82rem;
    text-align: center;
    text-decoration: none;
  }

  .messages-mobile-sections a.is-active {
    border-color: #7898c9;
    background: #7898c9;
    color: #fff;
    font-weight: 700;
  }

  .messages-workspace {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .messages-folders {
    display: none;
  }

  .messages-workspace:not(.messages-workspace--compose) .inbox-compose-form {
    display: none;
  }

  .messages-workspace--compose .messages-main {
    display: none;
  }

  .inbox-compose-form label {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .inbox-compose-form .ov-btn {
    margin-left: 91px;
  }

  .messages-filter-form {
    grid-template-columns: 1fr;
  }

  .message-card__actions {
    grid-column: 2;
  }

  .message-detail-card header {
    display: grid;
  }

  .message-detail-top-actions {
    justify-content: flex-start;
  }

  html.messages-chat-mode .section-page--berichten-notificaties > .supplier-manage-header,
  html.messages-chat-mode .section-page--berichten-notificaties > .supplier-tabs-mobile-wrap {
    display: none !important;
  }

  html.messages-chat-mode,
  html.messages-chat-mode body {
    overflow: hidden;
  }

  html.messages-chat-mode .content {
    overflow: hidden;
  }

  html.messages-chat-mode .section-page--berichten-notificaties .supplier-panel {
    padding-top: 0;
  }

  .chat-mobile-overview-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 4px 10px;
    border-bottom: 1px solid #d7dee8;
    background: #fff;
  }

  .chat-mobile-overview-bar a,
  .chat-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #d7dee8;
    border-radius: 999px;
    background: #fff;
    color: #334155;
    text-decoration: none;
    font-size: 1.7rem;
    line-height: 1;
  }

  .chat-mobile-overview-bar strong {
    font-size: 1.02rem;
  }

  .chat-shell {
    grid-template-columns: 1fr;
    min-height: 0;
    height: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .chat-shell:not(.has-active-chat) {
    height: calc(100dvh - 142px);
    height: calc(100svh - 142px);
  }

  .section-page--berichten-notificaties .supplier-panel {
    padding: 0;
    border: 0;
    background: transparent;
  }

  .chat-user-list {
    max-height: none;
    border-right: 0;
    border-bottom: 0;
  }

  .chat-shell.has-active-chat .chat-user-list {
    display: none;
  }

  .chat-shell.has-active-chat {
    height: calc(100dvh - 126px);
    height: calc(100svh - 126px);
    max-height: calc(100dvh - 126px);
    max-height: calc(100svh - 126px);
  }

  .chat-shell:not(.has-active-chat) .chat-panel {
    display: none;
  }

  .chat-panel {
    height: calc(100dvh - 142px);
    height: calc(100svh - 142px);
    min-height: 0;
    max-height: calc(100dvh - 142px);
    max-height: calc(100svh - 142px);
    border: 0;
  }

  .chat-shell.has-active-chat .chat-panel {
    height: calc(100dvh - 126px);
    height: calc(100svh - 126px);
    max-height: calc(100dvh - 126px);
    max-height: calc(100svh - 126px);
  }

  .chat-bubble {
    max-width: 88%;
  }

  .chat-compose {
    grid-template-columns: minmax(0, 1fr) 42px;
    flex: 0 0 auto;
  }

  .todo-layout {
    grid-template-columns: 1fr;
  }

  .todo-form-panel {
    display: none;
  }

  .todo-mobile-add {
    position: fixed;
    right: 16px;
    bottom: 18px;
    z-index: 2500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.28);
  }

  .todo-add-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 44px);
  }

  .todo-add-form {
    max-height: calc(100dvh - 44px);
    overflow-y: auto;
    padding: 14px 12px 14px;
  }

  .todo-add-form__header {
    padding: 0 36px 12px 0;
  }

  .todo-add-form__grid {
    padding: 0;
  }

  .todo-add-form__row {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
    padding: 6px 0;
  }

  .todo-add-form__row span {
    font-size: 0.82rem;
  }

  .todo-add-form__actions {
    justify-content: center;
    padding: 14px 0 0 106px;
  }

  .todo-table-wrap {
    overflow: visible;
  }

  .todo-table,
  .todo-table thead,
  .todo-table tbody,
  .todo-table tr,
  .todo-table th,
  .todo-table td {
    display: block;
  }

  .todo-table thead {
    display: none;
  }

  .todo-table {
    border: 0;
    background: transparent;
  }

  .todo-table tr {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    background: #fff;
  }

  .todo-table td {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid #eef2f7;
  }

  .todo-table td:last-child {
    border-bottom: 0;
  }

  .todo-table td::before {
    content: attr(data-label);
    color: #64748b;
    font-weight: 700;
  }

  .profile-photo-panel {
    align-items: flex-start;
  }

  .content {
    padding: 74px 10px 18px;
  }

  .activity-filter-shell {
    position: relative;
  }

  .activity-filter-shell::before {
    content: "";
    position: fixed;
    top: 62px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 3700;
    display: none;
    background: rgba(15, 23, 42, 0.35);
  }

  .activity-filter-shell.is-open::before {
    display: block;
  }

  .activity-filter-pin {
    display: none !important;
  }

  .activity-filter-shell.is-open .activity-filter-bar,
  .activity-filter-shell.is-pinned .activity-filter-bar {
    justify-content: flex-start;
  }

  form.activity-filter-form.filter-desktop,
  .activity-filter-form {
    position: fixed;
    top: 62px;
    right: 0;
    bottom: 0;
    z-index: 3800;
    display: grid !important;
    width: 80vw;
    max-width: 420px;
    grid-template-columns: 1fr;
    align-content: start;
    margin: 0;
    padding: 62px 14px 14px;
    border: 0;
    border-left: 1px solid #d7dee8;
    border-radius: 0;
    background: #f8fafc;
    box-shadow: -18px 0 36px rgba(15, 23, 42, 0.16);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.22s ease;
    pointer-events: none;
  }

  .activity-filter-shell.is-open form.activity-filter-form.filter-desktop,
  .activity-filter-shell.is-pinned form.activity-filter-form.filter-desktop,
  .activity-filter-shell.is-open .activity-filter-form,
  .activity-filter-shell.is-pinned .activity-filter-form {
    display: grid !important;
    right: 0;
    transform: translateX(0);
    pointer-events: auto;
  }

  .activity-filter-mobile-head {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
    box-sizing: border-box;
    padding: 8px 12px;
    border-bottom: 1px solid #d7dee8;
    background: #ffffff;
    color: #111827;
    font-weight: 600;
  }

  .activity-filter-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    min-height: 30px;
    margin: 0;
    padding: 0;
    border: 1px solid #d7dee8;
    border-radius: 6px;
    background: #f8fafc;
    color: #334155;
    font-size: 18px;
    line-height: 1;
  }

  .activity-filter-wide {
    grid-column: auto;
  }

  .activity-filter-actions {
    align-items: stretch;
    flex-wrap: wrap;
  }
}

.case-conversation-public { display: grid; gap: 12px; }
.case-conversation-list { display: grid; gap: 10px; }
.case-message { max-width: 82%; padding: 10px 12px; border: 1px solid #d7dee8; border-radius: 8px; background: #fff; }
.case-message header { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; color: #475569; font-size: 0.85rem; }
.case-message p { margin: 0; overflow-wrap: anywhere; }
.case-message-link { color: #0f5ea8; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.case-message small,
.case-message-status { display: block; margin-top: 8px; color: #64748b; font-size: 0.72rem; font-style: italic; }
.case-message-staff { justify-self: start; background: #f8fafc; }
.case-message-customer { justify-self: end; background: #eef6ff; }
.case-conversation-older { display: grid; gap: 10px; }
.case-conversation-older summary { cursor: pointer; color: #1f3b63; font-weight: 700; }
.case-conversation-older .case-conversation-list { margin-top: 10px; }
.case-conversation-form { display: grid; gap: 8px; }
.case-conversation-form textarea { width: 100%; box-sizing: border-box; border: 1px solid #cbd5e1; border-radius: 8px; padding: 10px; resize: vertical; }
.case-conversation-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 680px) {
  .case-message { max-width: 94%; }
}
