/* Project-specific Tabler adjustments belong here. */

.navbar-brand-image {
  width: auto;
  height: 60px;
  min-height: 60px;
  margin: 16px;
}

.tabler-interface-bar {
  min-height: auto;
  padding-block: 0.625rem;
  background: var(--tblr-bg-surface);
  border-top: 1px solid var(--tblr-border-color);
  border-bottom: 1px solid var(--tblr-border-color);
}

/* Keep navigation compact even below navbar-expand-md's breakpoint. */
.tabler-interface-bar .navbar-nav {
  gap: 0.375rem;
}

.tabler-interface-bar .navbar-nav .nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  min-height: 36px;
  padding: 0.5rem 0.75rem;
  border-radius: var(--tblr-border-radius);
  font-size: 0.875rem;
  line-height: 1.25;
  white-space: nowrap;
}

.tabler-interface-bar .nav-link .ti {
  margin: 0 !important;
  font-size: 1.125rem;
}

.tabler-interface-bar .nav-link:hover,
.tabler-interface-bar .nav-link:focus-visible {
  background: var(--tblr-bg-surface-secondary);
}

.tabler-interface-bar button.nav-link {
  background: transparent;
  border: 0;
  font-family: inherit;
}

.tabler-interface-bar .tabler-module-links .nav-link {
  background: var(--tblr-bg-surface-secondary);
  border: 1px solid var(--tblr-border-color);
  font-weight: 600;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.tabler-interface-bar .tabler-module-links .nav-link:hover,
.tabler-interface-bar .tabler-module-links .nav-link:focus-visible {
  background: var(--tblr-primary-lt);
  border-color: var(--tblr-primary);
  color: var(--tblr-primary);
}

.tabler-interface-bar .tabler-module-links .nav-link.active {
  background: var(--tblr-primary);
  border-color: var(--tblr-primary);
  color: #fff;
}

@media (max-width: 1199.98px) {
  .tabler-interface-bar .tabler-account-links {
    margin-left: 0 !important;
  }
}

.notification-indicator {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 0.45rem;
  min-width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: 2px solid var(--tblr-bg-surface);
  border-radius: 50%;
}

.page-body {
  margin-top: 16px;
}

.page-body .page-header {
  margin-top: 0;
}

.page-body table thead th {
  color: #000000;
  font-size: 10px;
  font-weight: 700;
}

.page-body table thead th a,
.page-body table thead th a:hover,
.page-body table thead th a:focus,
.page-body table thead th a:visited {
  color: #000000;
}

.table-action-button {
  width: 32px;
  min-width: 32px;
  height: 32px;
  padding: 0;
}

.table-action-button .ti {
  font-size: 16px;
}

.mytask-pipeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: 8px;
}

.mytask-pipeline-item {
  min-height: 58px;
  padding: 6px 4px;
  white-space: normal;
  line-height: 1.1;
  flex-direction: column;
  gap: 4px;
}

.mytask-pipeline-item strong {
  display: block;
}

.node-section-toolbar {
  border-color: #dce2ee;
  box-shadow: 0 2px 6px rgba(31, 41, 55, 0.08);
}

.node-section-item {
  flex: 1 1 160px;
  min-width: 150px;
  min-height: 44px;
  padding: 4px 10px 4px 4px;
  background: var(--tblr-bg-surface-secondary);
  border-radius: var(--tblr-border-radius);
}

.node-section-link {
  flex: 1 1 auto;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  color: var(--tblr-body-color);
  font-weight: 600;
  border-radius: var(--tblr-border-radius);
}

.node-section-link:hover,
.node-section-link:focus {
  color: var(--tblr-primary);
  background: var(--tblr-primary-lt);
}

.node-section-item.is-active .node-section-link {
  color: #ffffff;
  background: var(--tblr-primary);
}

.node-section-item .form-switch {
  min-height: auto;
  padding-left: 2.5rem;
}

.node-section-item .form-check-input {
  width: 2.25rem;
  height: 1.25rem;
  margin-top: 0;
  cursor: pointer;
}

.node-section-item .form-check-input:checked {
  background-color: var(--tblr-success);
  border-color: var(--tblr-success);
}

.node-summary-card {
  color: inherit;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.node-summary-card:hover,
.node-summary-card:focus {
  color: inherit;
  box-shadow: var(--tblr-box-shadow-card);
  transform: translateY(-1px);
}

.node-summary-card.is-active {
  box-shadow: 0 0 0 1px var(--tblr-primary), var(--tblr-box-shadow-card);
}

.contractors-locations-map {
  width: 100%;
  height: min(62vh, 560px);
  min-height: 360px;
  background: #f1f3f8;
  border: 1px solid var(--tblr-border-color);
  border-radius: var(--tblr-border-radius);
}

.locations-map-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  color: var(--tblr-secondary);
  font-size: 0.75rem;
  font-weight: 600;
}

.locations-map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.locations-map-legend-swatch {
  width: 12px;
  height: 12px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 50%;
}

.location-sheet-input {
  width: 120px;
  margin-left: auto;
  text-align: right;
}

.footer {
  padding-block: 12px;
  background: #ffffff;
  border-top: 1px solid #cccccc;
}

.page-body .container,
.page-body .container-sm,
.page-body .container-md,
.page-body .container-lg,
.page-body .container-xl,
.page-body .container-xxl {
  width: 100%;
  max-width: none;
}

.okuntube-thumbnail {
  object-fit: cover;
}

.okuntube-placeholder-icon {
  font-size: 3rem;
}

.okuntube-demo-thumbnail {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background: linear-gradient(135deg, #206bc4, #123966);
}

.filter-choice { position: relative; }
.filter-choice-summary { cursor: pointer; list-style: none; }
.filter-choice-summary::-webkit-details-marker { display: none; }
.filter-choice-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 1050;
  width: max(100%, 260px);
  max-width: calc(100vw - 32px);
  padding: 0.75rem;
}
.filter-choice-list { max-height: 240px; overflow-y: auto; }
.filter-choice-option { display: block; padding-block: 0.25rem; margin-bottom: 0; }
.filter-choice-option[hidden] { display: none; }
.filter-choice-chip { cursor: pointer; white-space: normal; text-align: left; }

select.form-select[hidden] { display: none !important; }

/* Alternate data rows throughout both the Tabler and legacy layouts.
   Use an inset overlay so existing status colors and hover states still work. */
/* Reset native odd/even rules before applying the same visible-row parity. */
.table > tbody > tr:nth-child(n) > * {
  --tblr-table-bg-type: transparent;
  --bs-table-bg-type: transparent;
  --tblr-table-accent-bg: transparent;
  --bs-table-accent-bg: transparent;
}

.table > tbody > tr:nth-child(even of :not([hidden]):not(.d-none)) > * {
  --tblr-table-bg-type: rgba(98, 105, 118, 0.075);
  --bs-table-bg-type: rgba(98, 105, 118, 0.075);
  --tblr-table-accent-bg: rgba(98, 105, 118, 0.075);
  --bs-table-accent-bg: rgba(98, 105, 118, 0.075);
}

.list-group > .list-group-item:nth-child(odd of :not([hidden]):not(.d-none)),
.data-list-item:nth-child(odd of .data-list-item:not([hidden]):not(.d-none)) {
  box-shadow: inset 0 0 0 9999px rgba(98, 105, 118, 0.075);
}

.data-card-list > :nth-child(odd) > .card {
  background-image: linear-gradient(rgba(98, 105, 118, 0.075), rgba(98, 105, 118, 0.075));
}

/* Data summaries must wrap into new rows instead of squeezing their labels. */
.workflow-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 0.75rem;
}

.workflow-summary-grid > * {
  min-width: 0;
}

.workflow-summary-grid .card-title,
.workflow-summary-grid .card-body,
.mytask-pipeline-item {
  word-break: normal;
  overflow-wrap: normal;
}

.workflow-summary-grid strong,
.mytask-pipeline-item strong {
  white-space: nowrap;
}

/* Global interface rule: wrap at spaces, never force a word to split.
   Override framework utilities too, including .text-break. */
html,
body,
body * {
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

/* Native disclosure keeps search forms closed until the user opens Filters. */
.search-filters > summary { list-style: none; cursor: pointer; }
.search-filters > summary::-webkit-details-marker { display: none; }
.search-filters[open] > summary .search-filters-chevron { transform: rotate(180deg); }

.report-list__summary {
  color: var(--tblr-primary, #206bc4);
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.report-list__summary::-webkit-details-marker { display: none; }
.report-list__hide { display: none; }
.report-list[open] > summary .report-list__show { display: none; }
.report-list[open] > summary .report-list__hide { display: inline; }
.report-list__items { margin: 0.5rem 0 0; padding-left: 1.1rem; }
@media print {
  .report-list > .report-list__summary { display: none; }
  .report-list::details-content { content-visibility: visible !important; }
  .report-list > .report-list__items { display: block !important; }
}

/* Report filters remain in their original form, preserving values/submission. */
.report-filter-window-toggle[aria-pressed="false"] .report-filter-window-close,
.report-filter-window-toggle[aria-pressed="true"] .report-filter-window-open { display: none; }
.report-filter-window-toggle[hidden],
.report-filter-position[hidden] { display: none !important; }
.report-filters--floating {
  position: fixed;
  inset: auto;
  z-index: 1040;
  width: min(480px, calc(100vw - 2rem));
  max-height: min(72vh, 720px);
  max-height: min(72dvh, 720px);
  overflow: auto;
  margin: 0 !important;
  padding: 1rem !important;
  background: #fff;
  border: 1px solid var(--tblr-border-color, #dce2ee);
  border-radius: 0.75rem;
  box-shadow: 0 0.75rem 2rem #18243330;
}
.report-filters--floating[data-report-filters-corner="top-left"] { top: 1rem; left: 1rem; }
.report-filters--floating[data-report-filters-corner="top-right"] { top: 1rem; right: 1rem; }
.report-filters--floating[data-report-filters-corner="bottom-left"] { bottom: 1rem; left: 1rem; }
.report-filters--floating[data-report-filters-corner="bottom-right"] { bottom: 1rem; right: 1rem; }
.report-filters--floating > [class*="col-"],
.report-filters--floating .row > [class*="col-"] {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
}
@media print {
  .report-filter-toolbar, .report-filter-window-toggle { display: none !important; }
  .report-filters--floating {
    position: static;
    width: auto;
    max-height: none;
    overflow: visible;
    box-shadow: none;
  }
}

.report-filter-pills { display: none !important; }
.report-filters--floating .report-filter-pills { display: flex !important; }
.report-filters--floating .filter-input-chips { display: none !important; }
.report-filter-pill { max-width: 100%; padding: 0.35rem 0.6rem; }
.report-filter-pill-edit, .report-filter-pill-remove {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0.15rem 0.25rem;
  text-decoration: none;
}
.report-filter-pill-edit { white-space: normal; text-align: left; }
.report-filter-pill-remove { font-size: 1.15em; }

/* The same Filters disclosure folds the entire floating form into a tab. */
form.report-filters--floating:has(details[data-controller~="report-filters"]:not([open])),
details.report-filters--floating:not([open]) {
  width: max-content;
  max-width: calc(100vw - 2rem);
  padding: 0.5rem !important;
  overflow: visible;
}
form.report-filters--floating:has(details[data-controller~="report-filters"]:not([open])) > :not(:has(details[data-controller~="report-filters"])) {
  display: none !important;
}
form.report-filters--floating:has(details[data-controller~="report-filters"]:not([open])) > :has(details[data-controller~="report-filters"]),
.report-filters--floating details[data-controller~="report-filters"]:not([open]) {
  margin: 0 !important;
}

/* Shared column controls; preferences never remove data from exports. */
.table-columns-toolbar { display: flex; justify-content: flex-end; padding: .5rem .75rem; }
.table-columns-menu { position: relative; }
.table-columns-menu > summary { list-style: none; cursor: pointer; }
.table-columns-menu > summary::-webkit-details-marker { display: none; }
.table-columns-panel { position: absolute; right: 0; top: 100%; z-index: 1060; min-width: 16rem; max-width: 90vw; max-height: 60vh; overflow-y: auto; padding: 1rem; background: var(--tblr-bg-surface, #fff); border: 1px solid var(--tblr-border-color, #ddd); border-radius: .375rem; box-shadow: 0 .5rem 1rem #0002; }
.table-column-header { position: relative; padding-right: 1.5rem !important; }
.table-column-resize { position: absolute; top: 0; right: 0; bottom: 0; width: 8px; cursor: col-resize; touch-action: none; }
.table-column-resize:hover, .table-column-resize:focus-visible { background: #206bc455; outline: 2px solid #206bc4; }
.table-column-sort { border: 0; background: transparent; color: inherit; cursor: pointer; padding: 0 .25rem; }
table[data-columns-id] [hidden] { display: none !important; }
.table-columns-fixed td, .table-columns-fixed th { overflow: hidden; overflow-wrap: anywhere; }
.table-columns-fixed th.table-column-header { overflow: visible; }
@media print {
  .table-columns-toolbar, .table-column-resize, .table-column-sort { display: none !important; }
}
table.table-columns-fixed { width: var(--table-columns-width) !important; }
.table-column-sort { font: inherit; letter-spacing: inherit; text-align: inherit; }

/* The button defines the column width; the hint wraps inside that width. */
.payment-generation-actions {
  display: grid;
  grid-template-columns: min-content;
  gap: .25rem;
  flex: 0 0 auto;
}
.payment-generation-actions > .btn {
  white-space: nowrap;
}
.payment-generation-actions > small {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Manual payment selection, used by the Tabler layout. */
.out-of-process-save {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1040;
  max-width: 240px;
}
.out-of-process-table tr.payment-mark-selected > td {
  background-color: #d9efff;
  --bs-table-bg-state: #d9efff;
}
.out-of-process-table tr.payment-mark-saved > td {
  background-color: #d9f2df;
  --bs-table-bg-state: #d9f2df;
  font-weight: 700;
}
