﻿@charset "UTF-8";
/*@import '_variables';*/
/*$primary: #b6c435;*/
/*$primary: #8ec63e;*/
/*$primary: #181819;*/
/*$primary: $un-blue;*/
/*$danger: #ff3239;*/
/*$background-color-hover: rgba($primary, 0.2);*/
.card.card-compact .card-header {
  padding-bottom: 0px;
}
.card.card-compact .card-body {
  padding: 16px 4px;
}

.alerts .alert-type-icon {
  font-size: 1.5rem;
  background-color: red;
  outline: 10px solid red;
}

input.found {
  /*background-color:lightgreen;*/
}

.cursor {
  cursor: pointer;
}

textarea.form-control {
  min-height: 80px;
}

.offcanvas {
  width: 600px !important;
}

.offcanvas-body h2 {
  background-color: #297372;
  color: #ffffff;
  padding: 12px 0px;
  text-align: center;
}

.address-book-list .card-header {
  display: flex;
  justify-content: space-between;
}
.address-book-list .address-book-item .column {
  display: flex;
  flex-direction: column;
  align-items: start;
}

.assign label {
  display: block;
  padding: 8px 0px;
}

#gridPage .dataTables_length {
  display: block;
  padding: 0.25rem;
}
#gridPage .dataTables_length label {
  display: inline-block;
  text-wrap-mode: nowrap;
  /*display: flex;
  flex-direction: row;
  width: 100%;*/
}
#gridPage .dataTables_length select {
  display: inline-block;
}
#gridPage .dataTables_filter {
  text-align: right;
  padding: 0.25rem;
}
#gridPage .dataTables_filter label {
  display: inline-block;
  text-wrap-mode: nowrap;
  /*display: flex;
  flex-direction: row;
  width: 100%;*/
}
#gridPage .dataTables_filter input {
  display: inline-block;
}

.edit-page label, .assign-page label {
  display: block;
  color: #297372;
  font-weight: 900;
}
.edit-page .col-12, .assign-page .col-12 {
  margin-bottom: 1rem;
}
.edit-page .form-check-label, .assign-page .form-check-label {
  margin: 1rem 0rem;
}
.edit-page .form-check-label span, .assign-page .form-check-label span {
  display: inline-block;
  padding-left: 0.5rem;
  padding-top: 2px;
}

#detail-page .contact-info {
  display: flex;
  margin: 0.5rem 0;
}
#detail-page .contact-info .fs-4 {
  margin-right: 1rem;
}
#detail-page h2.accordion-header button {
  font-weight: 700;
  color: #297372;
}

.btn-primary:hover {
  /*background-color: rgba(23,176,79);
  border-color: rgb(23,176,79);*/
  background-color: #ffffff;
  color: #297372;
}

.btn-black:hover {
  color: #181819;
  background-color: #ffffff;
}

.btn-danger:hover {
  color: rgb(255, 0, 0);
  background-color: #ffffff;
  /*background-color: rgba(255,0,0);
  border-color: rgb(255,0,0);*/
}

.mode-switch {
  width: 100%;
  text-align: center;
}
.mode-switch button:focus {
  color: #181819;
}
.mode-switch .toggle-btn-group {
  display: flex;
  gap: 0.25rem;
  justify-content: center;
}

.document-folders-page {
  /*.custom-table tr, custom-table tr {
      width: 100%;
      border-collapse: collapse;
      display: grid;
      grid-template-columns: auto 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
      //grid-template-columns: 150px 1fr 2fr auto;
  }

  .custom-table th, .custom-table td {
      padding: 8px;
      border: 1px solid #ddd;
  }

  .custom-table td:last-child, .custom-table th:last-child {
      white-space: nowrap; 
  }*/
  /*.custom-table {
      min-width: 1200px;
      width: 100%;
      border-collapse: collapse;
      table-layout: fixed;*/ /* Forces consistent column widths */
  /*}

  .custom-table th,
  .custom-table td {
      border: 1px solid #ddd;
      padding: 8px;
      overflow: hidden;
      text-overflow: ellipsis;*/ /* prevents overflow text */
  /*min-width: 200px;
  }

  .col-first {
      width: 150px;
  }

  .col-second {
      width: auto;
  }*/
}

.scrollable .card-body {
  overflow-x: auto;
}

.autocomplete .autocomplete-list li {
  list-style-type: none;
  padding: 12px 4px;
}
.autocomplete .autocomplete-list li.active {
  cursor: pointer;
  background-color: rgba(41, 115, 114, 0.5);
}
.autocomplete .autocomplete-list li:hover {
  cursor: pointer;
  background-color: rgba(41, 115, 114, 0.5);
}
.autocomplete .form-select.no-caret {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: none !important;
  padding-right: 0.75rem; /* tighten padding if needed */
}

.input-group-text.calendar:hover {
  cursor: pointer;
}

@container (min-width: 1200px) {}
.required {
  color: rgb(255, 0, 0);
}

.edit-page .form-check label {
  padding-left: 10px;
  padding-top: 2px;
}

.kpi-section {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.kpi-section .kpi-container {
  flex: 0 0 calc((100% - 32px) / 3);
  box-sizing: border-box;
}
.kpi-section .kpi-container .kpi-data {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  gap: 12px;
}
.kpi-section .kpi-container .kpi-data .item {
  padding: 4px;
  border-bottom: 5px solid #ffffff;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}
.kpi-section .kpi-container .kpi-data .item:hover {
  cursor: pointer;
  background-color: #f4f4f9;
}
.kpi-section .kpi-container .kpi-data .item.expired.active {
  border-bottom-color: #b91c1c;
}
.kpi-section .kpi-container .kpi-data .item.expiring.active {
  border-bottom-color: #F08650;
}
.kpi-section .kpi-container .kpi-data .item.active-ok.active {
  border-bottom-color: #17b04f;
}
.kpi-section .kpi-container .kpi-data .value {
  display: block;
  text-align: center;
  font-weight: 900;
  font-size: 22px;
}
.kpi-section .kpi-container .kpi-data .description {
  display: block;
  white-space: wrap;
  font-weight: 500;
  text-align: center;
}
.kpi-section .kpi-container .kpi-data .description.nowrap {
  white-space: nowrap;
}

.scope-selector {
  margin-right: 16px;
}

.condition {
  margin: 8px 0px;
}
.condition .result-icon {
  font-size: 1.6rem;
  line-height: 1;
}
.condition .text-end .fs-3 {
  color: #0d6ed2;
  font-weight: 900;
  font-size: 3rem;
  line-height: 2;
}
.condition .text-end .fs-3 button {
  border-color: red !important;
}

.user-picker {
  position: relative;
}
.user-picker .dropdown-menu {
  position: absolute;
  top: 50px;
  right: -40px !important;
  margin-top: 0px !important;
}

.deadline-history-timeline__header {
  cursor: pointer;
}

/* ===== AF DESIGN SYSTEM ===== */
/* Reusable classes for all AgendaFusion pages.
   af-* = canonical names (use in new/refactored pages)
   detail2-* = aliases (backward compatibility for Detail2 page) */
:root {
  --af-teal: #297372;
  --af-teal-light: rgba(41, 115, 114, 0.08);
  --af-teal-border: rgba(41, 115, 114, 0.25);
}

/* Page container */
.af-page, .detail2-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Page header */
.af-page-header, .detail2-header {
  background: #fff;
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid var(--bs-border-color);
}
.af-page-header__identity, .detail2-header__identity {
  margin-bottom: 0.75rem;
}
.af-page-header__title, .detail2-header__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  color: #303030;
}
.af-page-header__subtitle, .detail2-header__subtitle {
  font-size: 0.8rem;
  color: #6c757d;
  margin-bottom: 0.25rem;
}
.af-page-header__row2, .detail2-header__row2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.af-page-header__workflow-context, .detail2-header__workflow-context {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.af-page-header__people-context, .detail2-header__people-context {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
@media (max-width: 767.98px) {
  .af-page-header__row2, .detail2-header__row2 {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Card / panel */
.af-card, .detail2-card {
  background: #fff;
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid var(--bs-border-color);
}
.af-card__title, .detail2-section__title, .detail2-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #303030;
}

/* Label */
.af-label, .section-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ababae;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* Count badge */
.af-badge-count, .detail2-section-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0 0.4rem;
  background-color: #f8f9fa;
  color: #212529;
  border: 1px solid #dee2e6;
}

/* Task row */
.af-task-row__item, .detail2-workplan__item {
  display: flex;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid #f0f0f0;
  gap: 0.5rem;
}
.af-task-row__item:last-child, .detail2-workplan__item:last-child {
  border-bottom: none;
}
.af-task-row__order, .detail2-workplan__order {
  font-size: 0.75rem;
  width: 1.5rem;
  text-align: center;
  flex-shrink: 0;
  color: #6c757d;
}
.af-task-row__check, .detail2-workplan__check {
  flex-shrink: 0;
}
.af-task-row__subject, .detail2-workplan__subject {
  font-size: 0.85rem;
  /* Názov úlohy je hodnota, nie label — tučné písmo patrí len labelom. */
  font-weight: 400;
  color: #297372;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.af-task-row__subject:hover, .detail2-workplan__subject:hover {
  text-decoration: underline;
}
.af-task-row__assignee, .detail2-workplan__assignee {
  font-size: 0.8rem;
  color: #6c757d;
  white-space: nowrap;
}
.af-task-row__status, .detail2-workplan__status {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  white-space: nowrap;
}
.af-task-row__dot, .detail2-workplan__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.af-task-row__date, .detail2-workplan__date {
  font-size: 0.75rem;
  color: #ababae;
  white-space: nowrap;
}
.af-task-row__actions, .detail2-workplan__actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  margin-left: auto;
}

/* Data rows (key-value) */
.af-data-row__row, .detail2-zakladne-udaje__row {
  display: flex;
  align-items: baseline;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
  gap: 0.75rem;
}
.af-data-row__row:last-child, .detail2-zakladne-udaje__row:last-child {
  border-bottom: none;
}
.af-data-row__icon, .detail2-zakladne-udaje__icon {
  color: #297372;
  font-size: 0.9rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.af-data-row__label, .detail2-zakladne-udaje__label {
  font-weight: 600;
  font-size: 0.875rem;
  color: #303030;
  white-space: nowrap;
  min-width: 120px;
}
.af-data-row__value, .detail2-zakladne-udaje__value {
  font-size: 0.875rem;
  color: #303030;
}
.af-data-row__value--muted {
  color: #ababae;
}

/* Quick form */
.af-quickform, .detail2-quickform {
  background: var(--af-teal-light);
  border: 1px solid var(--af-teal-border);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}
.af-quickform__title, .detail2-quickform__title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #297372;
  margin-bottom: 0.5rem;
}

/* Quick form layout */
.af-quickform__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.af-quickform__error {
  color: #dc3545;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.af-quickform__actions {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}

.af-quickform__field-group {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.af-quickform__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #6c757d;
  white-space: nowrap;
}

/* Segmented date input */
.af-segmented-date {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  background: #fff;
  padding: 0 0.25rem;
  font-size: 0.875rem;
  height: 31px;
}
.af-segmented-date__segment {
  border: none;
  outline: none;
  text-align: center;
  padding: 0.15rem 0;
  background: transparent;
  font-size: 0.875rem;
  font-family: inherit;
}
.af-segmented-date__segment--day, .af-segmented-date__segment--month {
  width: 2ch;
}
.af-segmented-date__segment--year {
  width: 4ch;
}
.af-segmented-date__segment::placeholder {
  color: #adb5bd;
}
.af-segmented-date__segment:focus {
  background: var(--af-teal-light);
  border-radius: 2px;
}
.af-segmented-date__separator {
  color: #6c757d;
  font-size: 0.875rem;
  user-select: none;
  padding: 0 1px;
}
.af-segmented-date:focus-within {
  border-color: var(--af-teal);
  box-shadow: 0 0 0 0.15rem rgba(0, 128, 128, 0.15);
}

/* Segmented time input */
.af-segmented-time {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  background: #fff;
  padding: 0 0.25rem;
  font-size: 0.875rem;
  height: 31px;
}
.af-segmented-time__segment {
  border: none;
  outline: none;
  text-align: center;
  padding: 0.15rem 0;
  background: transparent;
  font-size: 0.875rem;
  font-family: inherit;
  width: 2ch;
}
.af-segmented-time__segment::placeholder {
  color: #adb5bd;
}
.af-segmented-time__segment:focus {
  background: var(--af-teal-light);
  border-radius: 2px;
}
.af-segmented-time__separator {
  color: #6c757d;
  font-size: 0.875rem;
  user-select: none;
  padding: 0 1px;
}
.af-segmented-time:focus-within {
  border-color: var(--af-teal);
  box-shadow: 0 0 0 0.15rem rgba(0, 128, 128, 0.15);
}

/* Category label */
.af-category-label, .detail2-suggest-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6c757d;
  font-weight: 600;
  padding: 0.5rem 0 0.25rem;
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 0;
}

/* Backlog */
.af-backlog__empty, .detail2-backlog__empty {
  text-align: center;
  padding: 1.5rem;
  color: #ababae;
  font-size: 0.875rem;
}
.af-backlog__item, .detail2-backlog__item {
  display: flex;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid #f0f0f0;
  gap: 0.5rem;
}
.af-backlog__item:last-child, .detail2-backlog__item:last-child {
  border-bottom: none;
}
.af-backlog__subject, .detail2-backlog__subject {
  font-size: 0.85rem;
  /* Názov úlohy je hodnota, nie label — tučné písmo patrí len labelom. */
  font-weight: 400;
  color: #303030;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}
.af-backlog__created, .detail2-backlog__created {
  font-size: 0.75rem;
  color: #ababae;
  white-space: nowrap;
}
.af-backlog__actions, .detail2-backlog__actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}
.af-backlog__start-form, .detail2-backlog__start-form {
  background: var(--af-teal-light);
  border: 1px solid var(--af-teal-border);
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

/* Link bar */
.af-linkbar, .detail2-linkbar {
  border-top: 1px dashed var(--af-teal-border);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}
.af-linkbar__row, .detail2-linkbar__row {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-wrap: wrap;
}
.af-linkbar__chips, .detail2-linkbar__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.375rem;
}
.af-linkbar__chip, .detail2-linkbar__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.5rem;
  border-radius: 1rem;
  font-size: 0.7rem;
  font-weight: 500;
  background: #fff;
  border: 1px solid var(--af-teal-border);
  color: #303030;
}
.af-linkbar__chip-type, .detail2-linkbar__chip-type {
  color: #297372;
  font-weight: 600;
}
.af-linkbar__chip-remove, .detail2-linkbar__chip-remove {
  cursor: pointer;
  color: #b91c1c;
  font-size: 0.8rem;
  line-height: 1;
}
.af-linkbar__chip-remove:hover, .detail2-linkbar__chip-remove:hover {
  color: rgb(118.5563380282, 17.9436619718, 17.9436619718);
}

/* Stepper */
.af-stepper, .detail2-stepper {
  background: #fff;
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid var(--bs-border-color);
}
.af-stepper__row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  padding: 0.5rem 0;
}
.af-stepper__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  cursor: default;
  flex: 1;
  min-width: 0;
}
.af-stepper__circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.af-stepper__circle--done {
  background-color: #297372;
  color: #fff;
}
.af-stepper__circle--active {
  width: 40px;
  height: 40px;
  background-color: #297372;
  color: #fff;
  font-size: 0.95rem;
  box-shadow: 0 0 0 4px var(--af-teal-light);
}
.af-stepper__circle--waiting {
  background-color: transparent;
  color: #ababae;
  border: 2px dashed #ababae;
}
.af-stepper__connector {
  display: flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 24px;
  max-width: 72px;
  width: 100%;
  align-self: flex-start;
  margin-top: 15px;
}
.af-stepper__connector-line {
  flex: 1;
  height: 2px;
}
.af-stepper__connector-arrow {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  flex-shrink: 0;
}
.af-stepper__connector--done .af-stepper__connector-line {
  background-color: #297372;
}
.af-stepper__connector--done .af-stepper__connector-arrow {
  border-left: 7px solid #297372;
}
.af-stepper__connector--pending .af-stepper__connector-line {
  background-color: #dee2e6;
}
.af-stepper__connector--pending .af-stepper__connector-arrow {
  border-left: 7px solid #dee2e6;
}
.af-stepper__name {
  font-size: 0.75rem;
  font-weight: 600;
  color: #303030;
  margin-top: 0.375rem;
  text-align: center;
}
.af-stepper__summary {
  font-size: 0.675rem;
  color: #6c757d;
  text-align: center;
  line-height: 1.3;
  margin-top: 0.125rem;
}
.af-stepper__step--waiting .af-stepper__name {
  color: #ababae;
}
.af-stepper__step--active .af-stepper__name {
  color: #297372;
}
.af-stepper__step--active .af-stepper__summary {
  color: #297372;
  font-weight: 500;
}

/* Assignees */
.af-assignees__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.af-assignees__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.af-assignees__item:last-child {
  border-bottom: none;
}
.af-assignees__name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #303030;
}
.af-assignees__name i {
  color: #6c757d;
}

/* Môj deň widget (inside detail page) */
.af-myday-widget, .detail2-myday {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.af-myday-widget__title, .detail2-myday__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #303030;
}
.af-myday-widget__actions, .detail2-myday__actions {
  display: flex;
  gap: 0.5rem;
}

/* Tools / actions zones */
.af-tools__zone-title, .detail2-nastroje__zone-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6c757d;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.af-tools__zone, .detail2-nastroje__zone {
  padding: 0.75rem 0;
}
.af-tools__zone + .af-tools__zone, .detail2-nastroje__zone + .af-tools__zone, .af-tools__zone + .detail2-nastroje__zone, .detail2-nastroje__zone + .detail2-nastroje__zone {
  border-top: 1px solid #f0f0f0;
}
.af-tools__action-disabled, .detail2-nastroje__action-disabled {
  opacity: 0.5;
  position: relative;
}
.af-tools__action-hint, .detail2-nastroje__action-hint {
  font-size: 0.7rem;
  color: #6c757d;
  margin-top: 0.125rem;
}

/* History accordion */
.af-historia__item, .detail2-historia__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  background: #f8f9fa;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: #303030;
  transition: background-color 0.15s;
  border: 1px solid #e9ecef;
}
.af-historia__item:hover, .detail2-historia__item:hover {
  background: #e9ecef;
}
.af-historia__item[aria-expanded=true], [aria-expanded=true].detail2-historia__item {
  background: #e9ecef;
  margin-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.af-historia__item[aria-expanded=true] .af-historia__chevron, .af-historia__item[aria-expanded=true] .detail2-historia__chevron, [aria-expanded=true].detail2-historia__item .af-historia__chevron, [aria-expanded=true].detail2-historia__item .detail2-historia__chevron {
  transform: rotate(90deg);
}
.af-historia__chevron, .detail2-historia__chevron {
  font-size: 0.75rem;
  color: #6c757d;
  transition: transform 0.2s;
}
.af-historia__content, .detail2-historia__content {
  padding: 0.75rem 1rem;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-top: none;
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
  margin-bottom: 0.5rem;
}
.af-historia__entry, .detail2-historia__entry {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.4rem 0;
}
.af-historia__entry + .af-historia__entry, .detail2-historia__entry + .af-historia__entry, .af-historia__entry + .detail2-historia__entry, .detail2-historia__entry + .detail2-historia__entry {
  border-top: 1px solid #e0e0e0;
}
.af-historia__entry-dot, .detail2-historia__entry-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.35rem;
}

/* Relations */
.af-relations__list, .detail2-relations__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.af-relations__item, .detail2-relations__item {
  padding: 0.4rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.af-relations__item:last-child, .detail2-relations__item:last-child {
  border-bottom: none;
}

.af-truncate, .detail2-prepojenia__truncate {
  display: inline-block;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}

.af-template-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

.af-template-card {
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  padding: 1.25rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.af-template-card:hover {
  border-color: rgba(41, 115, 114, 0.25);
  background: rgba(41, 115, 114, 0.08);
}
.af-template-card--selected {
  border-color: #297372;
  background: rgba(41, 115, 114, 0.08);
  box-shadow: 0 0 0 1px #297372;
}
.af-template-card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: rgba(41, 115, 114, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #297372;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.af-template-card__name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #303030;
  margin: 0;
}
.af-template-card__category {
  font-size: 0.7rem;
  color: #6c757d;
  margin: 0;
}

.af-template-preview__item {
  position: relative;
  padding: 0.125rem 0;
  border-radius: 0.25rem;
}
.af-template-preview__item:hover {
  background: rgba(41, 115, 114, 0.04);
}
.af-template-preview__item:hover .af-template-preview__remove {
  opacity: 1;
}
.af-template-preview__item--editing {
  background: rgba(41, 115, 114, 0.06);
}
.af-template-preview__item [role=button] {
  cursor: pointer;
}
.af-template-preview__remove {
  opacity: 0;
  padding: 0 0.25rem;
  line-height: 1;
  color: #6c757d;
  transition: opacity 0.15s;
}
.af-template-preview__remove:hover {
  color: #dc3545;
}
.af-template-preview__input {
  flex: 1;
  font-size: 0.8rem;
  padding: 0.125rem 0.375rem;
  height: auto;
}
.af-template-preview__add {
  font-size: 0.75rem;
  color: #297372;
  cursor: pointer;
  padding: 0.125rem 0;
  opacity: 0.7;
}
.af-template-preview__add:hover {
  opacity: 1;
  text-decoration: underline;
}
.af-template-preview__move {
  padding: 0 0.125rem;
  line-height: 1;
  color: #6c757d;
  font-size: 0.7rem;
  opacity: 0;
  transition: opacity 0.15s;
}
.af-template-preview__move:hover {
  color: #297372;
}
.af-template-preview__move:disabled {
  opacity: 0.3 !important;
  cursor: default;
}
.af-template-preview__item:hover .af-template-preview__move {
  opacity: 0.7;
}

.af-plan-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: border-color 0.15s;
}
.af-plan-card:hover {
  border-color: rgba(41, 115, 114, 0.25);
  background: rgba(41, 115, 114, 0.08);
}
.af-plan-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: rgba(41, 115, 114, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #297372;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.af-plan-card__body {
  flex: 1;
  min-width: 0;
}
.af-plan-card__name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #303030;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.af-plan-card__meta {
  font-size: 0.75rem;
  color: #6c757d;
  margin: 0;
}
.af-plan-card__progress {
  flex-shrink: 0;
  text-align: right;
}
.af-plan-card__progress-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: #303030;
}
.af-plan-card__progress-bar {
  width: 80px;
  height: 4px;
  background: #e9ecef;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.25rem;
}
.af-plan-card__progress-fill {
  height: 100%;
  background: #297372;
  border-radius: 2px;
}

.af-breadcrumb {
  font-size: 0.8rem;
  color: #6c757d;
  margin-bottom: 0.25rem;
}
.af-breadcrumb a {
  color: #297372;
  text-decoration: none;
}
.af-breadcrumb a:hover {
  text-decoration: underline;
}

.af-filter-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.af-filter-badges__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #6c757d;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.15s;
}
.af-filter-badges__badge:hover {
  color: #297372;
  border-color: rgba(41, 115, 114, 0.4);
}
.af-filter-badges__badge--active {
  color: #fff;
  background: #297372;
  border-color: #297372;
  font-weight: 600;
}
.af-filter-badges__badge--active:hover {
  background: rgb(30.2769230769, 84.9230769231, 84.1846153846);
}

.af-view-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #dee2e6;
  margin-bottom: 1rem;
}
.af-view-tabs__tab {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #6c757d;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.af-view-tabs__tab:hover {
  color: #297372;
}
.af-view-tabs__tab--active {
  color: #297372;
  border-bottom-color: #297372;
  font-weight: 600;
}

.priority-badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.1rem 0.45rem;
  border-radius: 0.75rem;
  display: inline-block;
  line-height: 1.3;
}
.priority-badge--vysoka {
  background: #f8d7da;
  color: #842029;
}
.priority-badge--normalna {
  background: #e9ecef;
  color: #495057;
}
.priority-badge--nizka {
  background: #d1e7dd;
  color: #0f5132;
}

.af-plan-status {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #dee2e6;
  flex-wrap: wrap;
}
.af-plan-status__progress {
  flex: 1;
  min-width: 200px;
}
.af-plan-status__label {
  font-size: 0.75rem;
  color: #6c757d;
  font-weight: 500;
}
.af-plan-status__bar-segments {
  display: flex;
  width: 100%;
  height: 6px;
  background: #e9ecef;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 0.25rem;
}
.af-plan-status__bar-segments > span {
  height: 100%;
}
.af-plan-status__counts {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.af-plan-status__count-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: #6c757d;
}
.af-plan-status__count-num {
  font-weight: 700;
  color: #303030;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.status-dot--yellow {
  background: #ffc107;
}
.status-dot--blue {
  background: #297372;
}
.status-dot--green {
  background: #198754;
}

.af-kanban__column {
  min-width: 260px;
  max-width: 300px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  padding: 0.75rem;
}
.af-kanban__column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.af-kanban__column-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #303030;
  text-decoration: none;
}
.af-kanban__column-title:hover {
  text-decoration: underline;
  color: #297372;
}
.af-kanban__column-count {
  font-size: 0.7rem;
  color: #6c757d;
}
.af-kanban__add-task {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: #297372;
  cursor: pointer;
  padding: 0.35rem 0;
  border: none;
  background: none;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}
.af-kanban__add-task:hover {
  text-decoration: underline;
}
.af-kanban__card {
  background: #fff;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.375rem;
  padding: 0.625rem 0.75rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: border-color 0.15s;
}
.af-kanban__card:hover {
  border-color: rgba(41, 115, 114, 0.25);
}
.af-kanban__card-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: #303030;
  margin-bottom: 0.25rem;
}
.af-kanban__card-checklist {
  font-size: 0.7rem;
  color: #6c757d;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.af-kanban__card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.375rem;
}
.af-kanban__card-date {
  font-size: 0.7rem;
  color: #6c757d;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.af-kanban__card-assignee {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: #297372;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.af-kanban__quickform {
  background: rgba(41, 115, 114, 0.08);
  border: 1px solid rgba(41, 115, 114, 0.25);
  border-radius: 0.375rem;
  padding: 0.625rem;
  margin-bottom: 0.5rem;
}
.af-kanban__column-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f0f0f0;
}
.af-kanban__column-progress {
  flex: 1;
  height: 3px;
  background: #e9ecef;
  border-radius: 2px;
  overflow: hidden;
}
.af-kanban__column-progress-fill {
  height: 100%;
  border-radius: 2px;
}
.af-kanban__card-status {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.af-kanban__card-status--nez {
  background: rgba(255, 193, 7, 0.1);
  color: #997404;
  border: 1px solid rgba(255, 193, 7, 0.25);
}
.af-kanban__card-status--rie {
  background: rgba(41, 115, 114, 0.08);
  color: #297372;
  border: 1px solid rgba(41, 115, 114, 0.25);
}
.af-kanban__card-status--dok {
  background: rgba(25, 135, 84, 0.08);
  color: #198754;
  border: 1px solid rgba(25, 135, 84, 0.2);
}
.af-kanban__card-subtasks {
  margin-top: 0.375rem;
  padding-top: 0.375rem;
  border-top: 1px dashed #dee2e6;
}
.af-kanban__card-subtask {
  font-size: 0.75rem;
  color: #495057;
  padding: 0.2rem 0 0.2rem 0.75rem;
  border-left: 2px solid rgba(41, 115, 114, 0.25);
  margin-bottom: 0.2rem;
  gap: 0.25rem;
}
.af-kanban__card-subtask:hover .af-kanban__card-subtask-edit {
  opacity: 1;
}
.af-kanban__card-subtask-check {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1.5px solid #ced4da;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  color: transparent;
}
.af-kanban__card-subtask-check--done {
  background: #297372;
  border-color: #297372;
  color: #fff;
}
.af-kanban__card-subtask-check--active {
  border-color: #297372;
}
.af-kanban__card-subtask-link {
  font-size: 0.75rem;
  color: #495057;
  text-decoration: none;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.af-kanban__card-subtask-link:hover {
  color: #297372;
  text-decoration: underline;
}
.af-kanban__card-subtask--done {
  text-decoration: line-through;
  color: #ababae;
}
.af-kanban__card-subtask--done:hover {
  color: #ababae;
}
.af-kanban__card-subtask-date {
  font-size: 0.6rem;
  color: #6c757d;
  white-space: nowrap;
  flex-shrink: 0;
}
.af-kanban__card-subtask-status {
  font-size: 0.6rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.af-kanban__card-subtask-status--done {
  color: #198754;
}
.af-kanban__card-subtask-status--active {
  color: #297372;
}
.af-kanban__card-subtask-status--nez {
  color: #6c757d;
}
.af-kanban__card-subtask-assignees {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  margin-left: auto;
}
.af-kanban__card-subtask-assignees .af-kanban__card-subtask-assignee {
  margin-left: -0.15rem;
  border: 1.5px solid #fff;
}
.af-kanban__card-subtask-assignees .af-kanban__card-subtask-assignee:first-child {
  margin-left: 0;
}
.af-kanban__card-subtask-assignee {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: #297372;
  color: #fff;
  font-size: 0.5rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.af-kanban__card-subtask-assignee--add {
  background: #e9ecef;
  color: #6c757d;
  cursor: pointer;
  font-size: 0.55rem;
  font-weight: 400;
}
.af-kanban__card-subtask-assignee--add:hover {
  background: rgba(41, 115, 114, 0.15);
  color: #297372;
}
.af-kanban__card-subtask-assignee--removable {
  position: relative;
}
.af-kanban__card-subtask-assignee--removable:hover .af-kanban__card-subtask-assignee-remove {
  display: flex;
}
.af-kanban__card-subtask-assignee-remove {
  display: none;
  position: absolute;
  top: -3px;
  right: -3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dc3545;
  color: #fff;
  font-size: 0.4rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
}
.af-kanban__card-subtask-edit {
  color: #6c757d;
  cursor: pointer;
  font-size: 0.65rem;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.15s;
}
.af-kanban__card-subtask-edit:hover {
  color: #297372;
}
.af-kanban__card-subtask-add {
  display: block;
  font-size: 0.7rem;
  color: #6c757d;
  text-decoration: none;
  margin-top: 0.25rem;
  cursor: pointer;
}
.af-kanban__card-subtask-add:hover {
  color: #297372;
  text-decoration: underline;
}
.af-kanban__card-subtask-input {
  margin-top: 0.375rem;
  padding: 0.375rem;
  background: rgba(41, 115, 114, 0.05);
  border-radius: 0.25rem;
}
.af-kanban__card-assignees {
  display: flex;
  align-items: center;
  gap: 0;
}
.af-kanban__card-assignees .af-kanban__card-assignee {
  margin-left: -0.25rem;
  border: 2px solid #fff;
}
.af-kanban__card-assignees .af-kanban__card-assignee:first-child {
  margin-left: 0;
}
.af-kanban__card-assignee--overflow {
  background: #6c757d;
  font-size: 0.55rem;
}
.af-kanban__card-assignee--add {
  background: #e9ecef;
  color: #6c757d;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 400;
}
.af-kanban__card-assignee--add:hover {
  background: rgba(41, 115, 114, 0.15);
  color: #297372;
}
.af-kanban__card-assignee--removable {
  position: relative;
}
.af-kanban__card-assignee--removable:hover .af-kanban__card-assignee-remove {
  display: flex;
}
.af-kanban__card-assignee-remove {
  display: none;
  position: absolute;
  top: -4px;
  right: -4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #dc3545;
  color: #fff;
  font-size: 0.5rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
}
.af-kanban__card-assign-inline {
  margin-top: 0.375rem;
  padding-top: 0.25rem;
  border-top: 1px dashed #dee2e6;
}
.af-kanban__add-column {
  min-width: 200px;
  flex-shrink: 0;
  border: 2px dashed #dee2e6;
  border-radius: 0.5rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 0.85rem;
  cursor: pointer;
  background: transparent;
  transition: border-color 0.15s, color 0.15s;
}
.af-kanban__add-column:hover {
  border-color: rgba(41, 115, 114, 0.25);
  color: #297372;
}

/* ── Workflow State Badges (252-plan-board-ux) ── */
.af-kanban__workflow {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.af-kanban__workflow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.55rem;
  font-weight: 600;
  padding: 0.1rem 0.35rem;
  border-radius: 0.2rem;
  white-space: nowrap;
  line-height: 1.4;
}
.af-kanban__workflow-badge--pending {
  background: rgba(230, 126, 34, 0.1);
  color: #e67e22;
  border: 1px solid rgba(230, 126, 34, 0.3);
}
.af-kanban__workflow-badge--accepted {
  background: rgba(41, 115, 114, 0.08);
  color: #297372;
  border: 1px solid rgba(41, 115, 114, 0.25);
}
.af-kanban__workflow-badge--declined {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.25);
}
.af-kanban__workflow-badge--not-submitted {
  background: rgba(108, 117, 125, 0.08);
  color: #6c757d;
  border: 1px solid rgba(108, 117, 125, 0.2);
}
.af-kanban__workflow-badge--submitted {
  background: rgba(13, 110, 253, 0.08);
  color: #0d6efd;
  border: 1px solid rgba(13, 110, 253, 0.2);
}
.af-kanban__workflow-badge--approved {
  background: rgba(25, 135, 84, 0.08);
  color: #198754;
  border: 1px solid rgba(25, 135, 84, 0.2);
}
.af-kanban__workflow-badge--rejected {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.25);
}
.af-kanban__workflow-badge--emphasis {
  font-weight: 700;
  font-size: 0.6rem;
  box-shadow: 0 0 0 1px currentColor;
}

/* ── Card Toolbar (252-plan-board-ux) ── */
.af-kanban__card-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.375rem;
  margin-bottom: 0.375rem;
  border-bottom: 1px solid #f0f0f0;
}

/* ── Subtask Mini-Card (252-plan-board-ux) ── */
.af-kanban__minicard {
  background: #fafbfc;
  border: 1px solid #e9ecef;
  border-radius: 0.3rem;
  padding: 0.5rem 0.6rem;
  margin-bottom: 0.35rem;
  transition: border-color 0.15s;
}
.af-kanban__minicard:hover {
  border-color: rgba(41, 115, 114, 0.25);
}
.af-kanban__minicard--attention {
  border-left: 3px solid #dc3545;
}
.af-kanban__minicard--done .af-kanban__minicard__name {
  text-decoration: line-through;
  color: #ababae;
}
.af-kanban__minicard__header {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
}
.af-kanban__minicard__name {
  font-size: 0.78rem;
  font-weight: 500;
  color: #303030;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  cursor: default;
}
.af-kanban__minicard__name:hover {
  color: #297372;
}
.af-kanban__minicard__check {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1.5px solid #ced4da;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  color: transparent;
  margin-top: 2px;
}
.af-kanban__minicard__check--done {
  background: #297372;
  border-color: #297372;
  color: #fff;
}
.af-kanban__minicard__dates {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6rem;
  color: #6c757d;
  margin-top: 0.25rem;
}
.af-kanban__minicard__dates span {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.af-kanban__minicard__date--overdue {
  color: #dc3545;
  font-weight: 600;
}
.af-kanban__minicard__workflow {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  margin-top: 0.3rem;
}
.af-kanban__minicard__users {
  margin-top: 0.3rem;
  padding-top: 0.25rem;
  border-top: 1px dashed #e9ecef;
}
.af-kanban__minicard__users-toggle {
  font-size: 0.6rem;
  color: #6c757d;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0.1rem 0;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.af-kanban__minicard__users-toggle:hover {
  color: #297372;
}
.af-kanban__minicard__users-list {
  overflow: hidden;
  transition: max-height 0.2s ease;
}
.af-kanban__minicard__users-list--collapsed {
  max-height: 0;
}
.af-kanban__minicard__users-list--expanded {
  max-height: 200px;
}
.af-kanban__minicard__user-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0;
  font-size: 0.6rem;
  color: #495057;
}
.af-kanban__minicard__user-avatar {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #297372;
  color: #fff;
  font-size: 0.45rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.af-kanban__minicard__user-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Bucket Warning Badge (252-plan-board-ux) ── */
.af-kanban__bucket-warning {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0.1rem 0.4rem;
  border-radius: 1rem;
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.25);
}

/* 254-board-task-offcanvas — Column scroll navigation */
.af-kanban__nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.af-kanban__nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  border: 1px solid var(--bs-border-color);
  background: #fff;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 0.75rem;
}
.af-kanban__nav-btn:hover {
  border-color: #297372;
  color: #297372;
  background: var(--af-teal-light);
}

/* 254-board-task-offcanvas — Gate status indicator on Sekcia columns */
.af-kanban__column-gate {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0.1rem 0.35rem;
  border-radius: 0.2rem;
}
.af-kanban__column-gate--active {
  background: rgba(230, 126, 34, 0.1);
  color: #e67e22;
  border: 1px solid rgba(230, 126, 34, 0.3);
}
.af-kanban__column-gate--satisfied {
  background: rgba(25, 135, 84, 0.08);
  color: #198754;
  border: 1px solid rgba(25, 135, 84, 0.2);
}

.af-kanban__reorder-btn {
  padding: 0;
  font-size: 0.65rem;
  line-height: 1;
  width: 1.2rem;
  height: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dee2e6;
  border-radius: 0.2rem;
  background: #fff;
  color: #6c757d;
  cursor: pointer;
}
.af-kanban__reorder-btn:hover:not(:disabled) {
  background: #f8f9fa;
  color: #303030;
}
.af-kanban__reorder-btn:disabled {
  opacity: 0.25;
  cursor: default;
}

.af-grid-subtask-row {
  background: #fafafa;
}
.af-grid-subtask-row td {
  font-size: 0.8rem !important;
  color: #6c757d;
}

/* Subtask flat list (used in task detail "Úlohy" section) */
.af-subtask-list__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.af-subtask-list__header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.af-subtask-list__title {
  font-size: 1rem;
  font-weight: 600;
  color: #303030;
  margin: 0;
}
.af-subtask-list__progress {
  font-size: 0.8rem;
  color: #6c757d;
  font-weight: 400;
}
.af-subtask-list__progress--complete {
  color: #198754;
  font-weight: 600;
}
.af-subtask-list__items {
  list-style: none;
  padding: 0;
  margin: 0;
}
.af-subtask-list__item {
  display: flex;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid #f0f0f0;
  gap: 0.5rem;
}
.af-subtask-list__item:last-child {
  border-bottom: none;
}
.af-subtask-list__status {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  white-space: nowrap;
  min-width: 110px;
}
.af-subtask-list__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.af-subtask-list__dot--nez {
  background-color: #adb5bd;
}
.af-subtask-list__dot--pre {
  background-color: #0d6efd;
}
.af-subtask-list__dot--cak {
  background-color: #ffc107;
}
.af-subtask-list__dot--uko {
  background-color: #198754;
}
.af-subtask-list__dot--odl {
  background-color: #adb5bd;
}
.af-subtask-list__dot--blo {
  background-color: #dc3545;
}
.af-subtask-list__center {
  flex: 1;
  min-width: 0;
}
.af-subtask-list__subject {
  font-size: 0.85rem;
  /* Názov úlohy je hodnota, nie label — tučné písmo patrí len labelom. */
  font-weight: 400;
  color: #297372;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.af-subtask-list__subject:hover {
  text-decoration: underline;
  cursor: pointer;
}
.af-subtask-list__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #6c757d;
}
.af-subtask-list__actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  margin-left: auto;
}
.af-subtask-list__info {
  color: #6c757d;
  font-size: 0.85rem;
  cursor: help;
}
.af-subtask-list__info:hover {
  color: #303030;
}
.af-subtask-list__empty {
  padding: 1rem 0;
  color: #6c757d;
  font-size: 0.875rem;
}
.af-subtask-list__create {
  padding-top: 0.5rem;
}

/* 254-board-task-offcanvas — Off-canvas body styling */
.af-offcanvas__body {
  background: var(--af-teal-light);
  padding: 1rem;
}
.af-offcanvas__form-group {
  background: #fff;
  border: 1px solid var(--af-teal-border);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}
.af-offcanvas__field {
  margin-bottom: 0.5rem;
}
.af-offcanvas__field:last-child {
  margin-bottom: 0;
}
.af-offcanvas__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #297372;
  margin-bottom: 0.25rem;
}
.af-offcanvas__link-detail {
  font-size: 0.8rem;
  color: #297372;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.af-offcanvas__link-detail:hover {
  text-decoration: underline;
}

/* 257-board-task-edit — Hours group, capacity indicator, auto-schedule */
.af-hours-group {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
}
.af-hours-group__field {
  flex: 1;
}
.af-hours-group__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #303030;
  margin-bottom: 0.25rem;
}
.af-hours-group__label--new {
  color: #297372;
}
.af-hours-group__hint {
  font-size: 0.65rem;
  color: #6c757d;
  margin-top: 0.25rem;
}
.af-hours-group__input {
  max-width: 120px;
}
.af-hours-group__input--highlight {
  border-color: var(--af-teal-border);
  background: var(--af-teal-light);
}

.af-capacity-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.8rem;
  margin-top: 0.75rem;
}
.af-capacity-inline--ok {
  background: rgba(25, 135, 84, 0.06);
  border: 1px solid rgba(25, 135, 84, 0.2);
  color: #198754;
}
.af-capacity-inline--warning {
  background: rgba(220, 53, 69, 0.06);
  border: 1px solid rgba(220, 53, 69, 0.2);
  color: #dc3545;
}
.af-capacity-inline__icon {
  font-size: 0.9rem;
}
.af-capacity-inline__text {
  font-weight: 500;
}
.af-capacity-inline__detail {
  font-size: 0.7rem;
  color: #6c757d;
  margin-left: auto;
}

.af-autoschedule-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border: 1px solid var(--af-teal-border);
  background: var(--af-teal-light);
  border-radius: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.8rem;
  color: #297372;
  font-weight: 500;
  cursor: pointer;
}
.af-autoschedule-btn:hover {
  background: #297372;
  color: #fff;
}

.af-autoschedule-result {
  background: var(--af-teal-light);
  border: 1px solid var(--af-teal-border);
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  margin-top: 0.75rem;
}
.af-autoschedule-result__title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #297372;
  margin-bottom: 0.375rem;
}
.af-autoschedule-result__dates {
  font-size: 0.85rem;
  color: #303030;
  margin-bottom: 0.5rem;
}
.af-autoschedule-result__actions {
  display: flex;
  gap: 0.5rem;
}

.af-capacity-page,
.capacity-index-page {
  max-width: 1400px;
}

.capacity-index-page .capacity-timeline-card {
  overflow-x: auto;
}
.capacity-index-page .capacity-timeline-table {
  min-width: 700px;
  grid-template-columns: 260px repeat(4, minmax(140px, 1fr));
}
.capacity-index-page .capacity-timeline-table__header {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6c757d;
}
.capacity-index-page .capacity-resource-cell {
  align-items: center;
}
.capacity-index-page .capacity-resource-avatar {
  width: 2rem;
  height: 2rem;
  font-size: 0.65rem;
  background: var(--af-teal);
  color: #fff;
  flex-shrink: 0;
}
.capacity-index-page .capacity-resource-name {
  font-size: 0.85rem;
  font-weight: 600;
}
.capacity-index-page .capacity-resource-meta {
  font-size: 0.7rem;
  color: #6c757d;
}
.capacity-index-page .capacity-week-cell {
  vertical-align: middle;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
}
.capacity-index-page .capacity-week-hours {
  font-size: 0.8rem;
  font-weight: 600;
}
.capacity-index-page .capacity-week-progress {
  height: 5px;
  margin: 0.25rem auto;
  max-width: 80px;
}
.capacity-index-page .capacity-week-percent {
  font-size: 0.65rem;
}
.capacity-index-page .capacity-task-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.25rem;
}
.capacity-index-page .capacity-task-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6rem;
}
.capacity-index-page .capacity-task-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--af-teal);
  flex-shrink: 0;
}
.capacity-index-page .capacity-task-link {
  color: #303030;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 90px;
}
.capacity-index-page .capacity-task-hours {
  color: #6c757d;
  flex-shrink: 0;
}
.capacity-index-page .capacity-task-more {
  font-size: 0.55rem;
  color: #6c757d;
}
.capacity-index-page .capacity-issues-card {
  position: sticky;
  top: 1rem;
}
.capacity-index-page .capacity-issues-card__title {
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.capacity-index-page .capacity-issue-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.375rem;
  margin-bottom: 0.5rem;
  text-decoration: none;
  font-size: 0.8rem;
  color: inherit;
}
.capacity-index-page .capacity-issue-item__icon {
  font-size: 0.9rem;
  line-height: 1;
  margin-top: 0.1rem;
}
.capacity-index-page .capacity-issue-item__title {
  font-weight: 500;
  color: #303030;
}
.capacity-index-page .capacity-issue-item__description {
  font-size: 0.7rem;
  color: #6c757d;
}
.capacity-index-page .capacity-bar-prep {
  background: repeating-linear-gradient(45deg, #9ec5c4, #9ec5c4 3px, #c7dedd 3px, #c7dedd 6px);
}
.capacity-index-page .capacity-task-dot--prep {
  background: #9ec5c4;
}
.capacity-index-page .capacity-absence-badge {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.1rem 0.25rem;
  margin-left: 0.25rem;
  border-radius: 0.2rem;
  background: rgba(155, 89, 182, 0.15);
  color: #9b59b6;
  vertical-align: middle;
}
.capacity-index-page .capacity-week-actual {
  font-size: 0.6rem;
  color: #6c757d;
  font-style: italic;
  margin-top: 0.1rem;
}

.af-autoschedule-result__displaced ul {
  padding-left: 1.1rem;
  color: var(--bs-danger);
}

.af-kanban__card--capacity-warning {
  border-left: 3px solid var(--bs-danger);
}

.af-capacity-warning {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0.1rem 0.4rem;
  border-radius: 1rem;
  background: rgba(220, 53, 69, 0.1);
  color: var(--bs-danger);
  border: 1px solid rgba(220, 53, 69, 0.25);
}

.documentfolder-index-page .extended-filters {
  border-top: 1px solid var(--bs-border-color, #dee2e6);
  padding-top: 1rem;
  margin-top: 0.5rem;
}
.documentfolder-index-page .extended-filters .toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.documentfolder-index-page .extended-filters .toggle-row .toggle-label {
  font-weight: 600;
  margin-right: 0.5rem;
}
.documentfolder-index-page .extended-filters .toggle-row .toggle-button {
  padding: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.tasks-search-table {
  grid-template-columns: minmax(150px, 2fr) minmax(140px, 1.3fr) 95px 95px 95px 95px 100px 110px minmax(120px, 1fr);
}
.tasks-search-table.with-commands {
  grid-template-columns: minmax(150px, 2fr) minmax(140px, 1.3fr) 95px 95px 95px 95px 100px 110px minmax(120px, 1fr) max-content;
}

.records-table {
  grid-template-columns: 95px minmax(120px, 150px) minmax(150px, 1.5fr) 100px minmax(100px, 130px) minmax(100px, 130px) minmax(160px, 2fr) 100px minmax(120px, 1.5fr) 90px;
}
.records-table.with-commands {
  grid-template-columns: 95px minmax(120px, 150px) minmax(150px, 1.5fr) 100px minmax(100px, 130px) minmax(100px, 130px) minmax(160px, 2fr) 100px minmax(120px, 1.5fr) 90px max-content;
}

.court-trials-table {
  grid-template-columns: 95px minmax(100px, 1fr) minmax(150px, 1.5fr) minmax(120px, 1.2fr) 100px 95px minmax(100px, 1fr) 100px 90px;
}
.court-trials-table.with-commands {
  grid-template-columns: 95px minmax(100px, 1fr) minmax(150px, 1.5fr) minmax(120px, 1.2fr) 100px 95px minmax(100px, 1fr) 100px 90px max-content;
}

.prosecution-trials-table {
  grid-template-columns: 95px minmax(100px, 1fr) minmax(150px, 1.5fr) minmax(120px, 1.2fr) 100px 95px minmax(100px, 1fr) 100px 90px;
}
.prosecution-trials-table.with-commands {
  grid-template-columns: 95px minmax(100px, 1fr) minmax(150px, 1.5fr) minmax(120px, 1.2fr) 100px 95px minmax(100px, 1fr) 100px 90px max-content;
}

.remedies-table {
  grid-template-columns: 95px minmax(150px, 1.5fr) minmax(140px, 1fr) 95px 95px minmax(80px, 100px) 100px;
}
.remedies-table.with-commands {
  grid-template-columns: 95px minmax(150px, 1.5fr) minmax(140px, 1fr) 95px 95px minmax(80px, 100px) 100px max-content;
}

.events-table {
  grid-template-columns: 95px 95px minmax(150px, 1.5fr) minmax(120px, 1fr) minmax(120px, 1fr) 90px 100px;
}
.events-table.with-commands {
  grid-template-columns: 95px 95px minmax(150px, 1.5fr) minmax(120px, 1fr) minmax(120px, 1fr) 90px 100px max-content;
}

.deadlines-table {
  grid-template-columns: 95px 80px minmax(180px, 2fr) 100px 100px minmax(140px, 1fr) 110px;
}
.deadlines-table.with-commands {
  grid-template-columns: 95px 80px minmax(180px, 2fr) 100px 100px minmax(140px, 1fr) 110px max-content;
}

.stepper {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
}
.stepper .stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}
.stepper .stepper-step .stepper-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bs-secondary-bg, #e9ecef);
  color: var(--bs-secondary-color, #6c757d);
  border: 2px solid var(--bs-border-color, #dee2e6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.2s, border-color 0.2s;
}
.stepper .stepper-step .stepper-label {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--bs-secondary-color, #6c757d);
  text-align: center;
  white-space: nowrap;
}
.stepper .stepper-step.done .stepper-circle {
  background-color: var(--bs-success, #198754);
  border-color: var(--bs-success, #198754);
  color: #fff;
}
.stepper .stepper-step.done .stepper-label {
  color: var(--bs-success, #198754);
}
.stepper .stepper-step.active .stepper-circle {
  background-color: var(--bs-primary, #0d6efd);
  border-color: var(--bs-primary, #0d6efd);
  color: #fff;
}
.stepper .stepper-step.active .stepper-label {
  color: var(--bs-primary, #0d6efd);
  font-weight: 600;
}
.stepper .stepper-arrow {
  font-size: 1.4rem;
  color: var(--bs-border-color, #dee2e6);
  padding: 0 4px;
  margin-top: 8px;
  line-height: 40px;
  user-select: none;
}

/* WorkPlanPanel — plan-workflow */
.plan-workflow__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid #f0f0f0;
  padding-left: calc(var(--plan-indent, 0) * 1.5rem);
}
.plan-workflow__row:last-child {
  border-bottom: none;
}
.plan-workflow__left {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.plan-workflow__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #6c757d;
}
.plan-workflow__status-dot.is-active {
  background: #198754;
}
.plan-workflow__status-dot.is-done {
  background: #0d6efd;
}
.plan-workflow__status-dot.is-waiting {
  background: #ffc107;
}
.plan-workflow__status-dot.is-blocked {
  background: #dc3545;
}
.plan-workflow__status-dot.is-deferred {
  background: #adb5bd;
}
.plan-workflow__title {
  font-size: 0.875rem;
  color: #303030;
  text-decoration: none;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.plan-workflow__title:hover {
  color: var(--af-teal, #297372);
  text-decoration: underline;
}
.plan-workflow__assignee {
  flex-shrink: 0;
  font-size: 0.8rem;
  color: #495057;
  white-space: nowrap;
  min-width: 120px;
  text-align: right;
}
.plan-workflow__status-label {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: #6c757d;
  white-space: nowrap;
  min-width: 72px;
  text-align: right;
}
.plan-workflow__date {
  flex-shrink: 0;
  font-size: 0.8rem;
  color: #6c757d;
  white-space: nowrap;
  min-width: 80px;
  text-align: right;
}
.plan-workflow__right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.plan-workflow__empty {
  font-size: 0.875rem;
  color: #6c757d;
}

/* Event participants — internal staff list (Zamestnanci úradu) */
.event-staff-list .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.event-staff-list .staff-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.event-staff-list .staff-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
}
.event-staff-list .empty-state {
  font-size: 0.875rem;
  font-style: italic;
}

/* Účastníci — compact subsection layout for Event detail right column */
.ucastnici .event-staff-list,
.ucastnici .address-book-list {
  margin-bottom: 0.75rem;
}
.ucastnici .event-staff-list .card-title,
.ucastnici .address-book-list .card-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0;
}
.ucastnici .event-staff-list .card-header,
.ucastnici .address-book-list .card-header {
  padding: 0.5rem 0.75rem;
}
.ucastnici .event-staff-list .card-body,
.ucastnici .address-book-list .card-body {
  padding: 0.5rem 0.75rem;
}
.ucastnici .event-staff-list .btn-outline-success,
.ucastnici .address-book-list .btn-outline-success {
  padding: 0.15rem 0.4rem;
  font-size: 0.85rem;
}
.ucastnici .event-staff-list:last-child,
.ucastnici .address-book-list:last-child {
  margin-bottom: 0;
}

.card.relations .udaje {
  display: grid;
  grid-template-columns: 20px auto 1fr;
  column-gap: 12px;
}
.card.relations .udaje .row {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1/-1;
  padding: 16px;
}
.card.relations .udaje .row .icon {
  color: var(--af-teal);
  font-size: 0.9rem;
  text-align: center;
  flex-shrink: 0;
}
.card.relations .udaje .row .label {
  font-weight: 600;
  font-size: 0.875rem;
  color: #303030;
  white-space: nowrap;
  min-width: 100px;
  width: 50%;
  flex-shrink: 0;
}
.card.relations .udaje .row .value {
  font-size: 0.875rem;
  color: #303030;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}
.card.relations .udaje .row .value a {
  color: #297372;
  font-weight: 600;
}
.card.relations .udaje .row .value a:hover {
  text-decoration: underline;
}
.card.relations .udaje .row .value.muted {
  color: #ababae;
}

.xdsoft_datetimepicker {
  position: fixed !important;
  z-index: 9999 !important;
  max-width: 272px !important;
}

#detail-page_v2 .assignees .violation .icon-user {
  color: rgb(255, 0, 0);
}
.btn-danger:hover {
  background-color: #ffffff;
  color: rgb(255, 0, 0) !important;
}

.btn:hover {
  background-color: #297372 !important;
  color: #ffffff;
}
.btn:hover > i {
  color: #ffffff !important;
}

.tasks-search-index-page .category-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.tasks-search-index-page .category-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
}
.tasks-search-index-page .category-chip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.7rem;
  height: 1.4rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #f8f9fa;
  color: #303030;
  border: 1px solid #dee2e6;
  font-size: 0.75rem;
  font-weight: 700;
}
.tasks-search-index-page .category-chip.btn-primary .category-chip-count {
  background: rgba(255, 255, 255, 0.92);
  color: #1f1f1f;
  border-color: rgba(255, 255, 255, 0.92);
}
.tasks-search-index-page .category-chips-note {
  font-size: 0.85rem;
}

.offcanvas-header-custom {
  border-top: 0px solid rgb(240, 250, 244);
}

.alerts-table {
  grid-template-columns: 50px 1fr 50px;
}
.alerts-table a {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1/-1;
  gap: 1rem;
}

.alerts h2 {
  margin-bottom: 1.5rem;
}
.alerts h2 i {
  margin-right: 0.5rem;
}
.alerts h2 .badge {
  /*color: $danger;*/
}
.alerts .card {
  cursor: pointer;
}
.alerts .card.otto {
  border: 1px solid #297372 !important;
}
.alerts .card:hover {
  background-color: rgb(240, 250, 244);
}
.alerts .card .icon {
  font-size: 2.25rem;
  padding: 4px;
  font-weight: 100 !important;
}
.alerts .card .icon.active {
  background-color: #297372;
  color: #ffffff;
  border: 1px solid #297372;
}
.alerts .card .icon.active:hover {
  background-color: rgb(240, 250, 244);
  color: #297372;
  border: 1px solid #297372;
}
.alerts .card .alert-read-btn {
  font-size: 1.3rem;
}
.alerts .card .alert-card-clickable:hover {
  border-color: var(--bs-primary) !important;
  box-shadow: 0 0 0 0.15rem rgba(var(--bs-primary-rgb), 0.15);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#detail-page_v2 .btn-sm2 {
  background-color: #297372;
  color: #ffffff;
}
#detail-page_v2 .btn-sm2 i {
  color: #ffffff !important;
}
#detail-page_v2 .director-commissioner-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: stretch;
}
#detail-page_v2 .director-commissioner-actions .dc-actions-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
#detail-page_v2 .director-commissioner-actions .dc-actions-cell {
  flex: 1 1 0;
}
