/*
 * Jednotná farebná schéma (modrozelená + jedna oranžová akcia).
 * Platí len pre stránky, ktoré majú na <body> triedu "theme-v2"
 * (blok body_class v base.html.twig), aby sa dalo nasadzovať po stránkach.
 */

body.theme-v2 {
  --bs-primary: #0f5a7c;
  --bs-primary-rgb: 15, 90, 124;
  --bs-link-color: #0f5a7c;
  --bs-link-color-rgb: 15, 90, 124;
  --bs-link-hover-color: #0a4560;
  --bs-link-hover-color-rgb: 10, 69, 96;
  --bs-body-color: #1f2933;
  --bs-body-bg: #f1f3f5;
  --bs-secondary-color: #5f6b7a;
  --bs-border-color: #d8dde3;
  --bs-border-radius: 4px;
  --bs-border-radius-sm: 4px;
  --bs-border-radius-lg: 6px;
  --bs-font-sans-serif: "Roboto", system-ui, sans-serif;

  background: #f1f3f5;
  color: #1f2933;
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

/* ----- Pozadie a rozloženie ----- */

body.theme-v2 .main {
  background: #f1f3f5 !important;
  display: flex;
  flex-direction: column;
}

body.theme-v2 .overlay {
  display: none;
}

body.theme-v2 .content {
  flex: 1 0 auto;
  min-height: 0;
}

body.theme-v2 .container {
  max-width: 1200px;
}

/* ----- Odkazy ----- */

body.theme-v2 a:not(.btn):not(.dropdown-item):not(.nav-link):not(.page-link):not(.category-chip) {
  color: #0f5a7c;
  text-decoration: none;
}

body.theme-v2 a:not(.btn):not(.dropdown-item):not(.nav-link):not(.page-link):not(.category-chip):hover {
  color: #0a4560;
  text-decoration: underline;
}

body.theme-v2 .text-primary,
body.theme-v2 .card .text-primary {
  color: #0f5a7c !important;
  font-weight: inherit;
}

body.theme-v2 .text-danger {
  color: #b42318 !important;
}

/* ----- Hlavička ----- */

body.theme-v2 .main-menu-header,
body.theme-v2 .navbar.bg-light {
  background: #ffffff !important;
  border-radius: 0;
  border-bottom: 4px solid #ee6f17;
  padding: 0;
  margin-bottom: 24px !important;
}

body.theme-v2 .main-menu-header > .container-fluid {
  max-width: 1200px;
  padding: 8px 24px;
}

body.theme-v2 .main-menu-header .navbar-nav .nav-link {
  padding: 22px 14px;
}

body.theme-v2 .container {
  padding-left: 24px;
  padding-right: 24px;
}

body.theme-v2 .navbar-expand .navbar-nav .nav-link,
body.theme-v2 .navbar-nav .nav-link {
  color: #1f2933;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 14px;
}

body.theme-v2 .navbar-nav .nav-link:hover,
body.theme-v2 .navbar-nav .nav-link:focus {
  color: #0f5a7c;
  text-decoration: none;
}

body.theme-v2 .navbar-nav .nav-link.active {
  color: #0f5a7c;
  font-weight: 700;
  box-shadow: inset 0 -3px 0 #0f5a7c;
}

body.theme-v2 .navbar-nav .nav-link.dropdown-toggle {
  color: #5f6b7a;
  font-weight: 400;
}

/* ----- Karty ----- */

body.theme-v2 .card {
  background: #ffffff;
  border: 1px solid #d8dde3;
  border-radius: 6px;
  box-shadow: none;
}

body.theme-v2 .card-body h1,
body.theme-v2 .card-body h3,
body.theme-v2 .card-body strong {
  color: inherit;
}

body.theme-v2 .card-body h1 {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 16px;
}

body.theme-v2 .card-body h3 {
  font-size: 20px;
  font-weight: 700;
}

body.theme-v2 .card-body strong {
  font-size: inherit;
  font-weight: 700;
}

/* ----- Záložky ----- */

body.theme-v2 .nav-tabs {
  border-bottom: 1px solid #d8dde3;
  gap: 4px;
}

body.theme-v2 .nav-tabs .nav-link {
  color: #1f2933;
  font-weight: 500;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  margin-bottom: -1px;
  padding: 10px 16px;
}

body.theme-v2 .nav-tabs .nav-link:hover {
  color: #0f5a7c;
  border-bottom-color: #b8c0ca;
  text-decoration: none;
}

body.theme-v2 .nav-tabs .nav-link.active {
  color: #0f5a7c;
  font-weight: 700;
  background: transparent;
  border-bottom-color: #0f5a7c;
}

/* ----- Tlačidlá ----- */

body.theme-v2 .btn {
  border-radius: 4px;
  font-weight: 500;
}

body.theme-v2 .btn:hover {
  text-decoration: none;
}

body.theme-v2 .btn-primary {
  --bs-btn-bg: #0f5a7c;
  --bs-btn-border-color: #0f5a7c;
  --bs-btn-hover-bg: #0a4560;
  --bs-btn-hover-border-color: #0a4560;
  --bs-btn-active-bg: #0a4560;
  --bs-btn-active-border-color: #0a4560;
  --bs-btn-disabled-bg: #0f5a7c;
  --bs-btn-disabled-border-color: #0f5a7c;
  --bs-btn-color: #ffffff;
  --bs-btn-hover-color: #ffffff;
  --bs-btn-active-color: #ffffff;
}

/* Jediná hlavná akcia na obrazovke */
body.theme-v2 .btn-accent {
  --bs-btn-color: #ffffff;
  --bs-btn-bg: #c24a08;
  --bs-btn-border-color: #c24a08;
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: #a43e06;
  --bs-btn-hover-border-color: #a43e06;
  --bs-btn-active-color: #ffffff;
  --bs-btn-active-bg: #a43e06;
  --bs-btn-active-border-color: #a43e06;
  --bs-btn-focus-shadow-rgb: 194, 74, 8;
  font-weight: 700;
}

/* Ostatné farebné tlačidlá sú neutrálne; farba nesie len význam (červená = mazanie) */
body.theme-v2 .btn-success,
body.theme-v2 .btn-info,
body.theme-v2 .btn-warning,
body.theme-v2 .btn-gen,
body.theme-v2 .btn-outline-primary {
  --bs-btn-color: #0f5a7c;
  --bs-btn-bg: #ffffff;
  --bs-btn-border-color: #0f5a7c;
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: #0f5a7c;
  --bs-btn-hover-border-color: #0f5a7c;
  --bs-btn-active-color: #ffffff;
  --bs-btn-active-bg: #0a4560;
  --bs-btn-active-border-color: #0a4560;
  --bs-btn-disabled-color: #5f6b7a;
  --bs-btn-disabled-bg: #ffffff;
  --bs-btn-disabled-border-color: #b8c0ca;
  color: var(--bs-btn-color);
  background: var(--bs-btn-bg);
  border-color: var(--bs-btn-border-color);
}

body.theme-v2 .btn-secondary,
body.theme-v2 .btn-outline-secondary {
  --bs-btn-color: #1f2933;
  --bs-btn-bg: #ffffff;
  --bs-btn-border-color: #b8c0ca;
  --bs-btn-hover-color: #1f2933;
  --bs-btn-hover-bg: #f1f3f5;
  --bs-btn-hover-border-color: #b8c0ca;
  --bs-btn-active-color: #1f2933;
  --bs-btn-active-bg: #e6eaee;
  --bs-btn-active-border-color: #b8c0ca;
}

body.theme-v2 .btn-danger {
  --bs-btn-bg: #b42318;
  --bs-btn-border-color: #b42318;
  --bs-btn-hover-bg: #912018;
  --bs-btn-hover-border-color: #912018;
  --bs-btn-active-bg: #912018;
  --bs-btn-active-border-color: #912018;
}

body.theme-v2 .btn-outline-danger {
  --bs-btn-color: #b42318;
  --bs-btn-border-color: #b42318;
  --bs-btn-hover-bg: #b42318;
  --bs-btn-hover-border-color: #b42318;
  --bs-btn-active-bg: #912018;
  --bs-btn-active-border-color: #912018;
}

body.theme-v2 .btn-sm {
  font-size: 14px;
}

/* ----- Rozbaľovacie menu ----- */

body.theme-v2 .dropdown-menu {
  --bs-dropdown-bg: #ffffff;
  --bs-dropdown-link-hover-bg: #f1f3f5;
  border: 1px solid #b8c0ca;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(31, 41, 51, 0.15);
  font-size: 15px;
  padding: 6px 0;
}

body.theme-v2 .dropdown-item {
  color: #1f2933;
  padding: 8px 16px;
}

body.theme-v2 .dropdown-item:hover,
body.theme-v2 .dropdown-item:focus {
  background: #f1f3f5;
  color: #1f2933;
  text-decoration: none;
}

body.theme-v2 .dropdown-item.text-danger {
  color: #b42318 !important;
  font-weight: 500;
}

/* ----- Formuláre ----- */

body.theme-v2 .form-control,
body.theme-v2 .form-select {
  background-color: #ffffff;
  border: 1px solid #b8c0ca;
  border-radius: 4px;
  color: #1f2933;
}

body.theme-v2 .form-control:focus,
body.theme-v2 .form-select:focus {
  border-color: #0f5a7c;
  box-shadow: 0 0 0 0.2rem rgba(15, 90, 124, 0.2);
}

body.theme-v2 .form-check-input:checked {
  background-color: #0f5a7c;
  border-color: #0f5a7c;
}

/* ----- Tabuľky (bootstrap-table) ----- */

body.theme-v2 .table {
  --bs-table-bg: transparent;
  font-size: 14px;
  color: #1f2933;
}

body.theme-v2 .table > :not(caption) > * > * {
  padding: 12px;
  border-bottom: 1px solid #e6eaee;
  vertical-align: middle;
}

body.theme-v2 .table > thead > tr > * {
  background: #f7f8fa;
  color: #5f6b7a;
  font-weight: 500;
  border-bottom: 1px solid #d8dde3;
}

body.theme-v2 .fixed-table-container .table thead th,
body.theme-v2 .fixed-table-container .table thead th .th-inner {
  background: #f7f8fa;
}

body.theme-v2 .table > thead .th-inner {
  font-weight: 500;
}

body.theme-v2 .table-hover > tbody > tr:hover > * {
  --bs-table-hover-bg: #f7f8fa;
}

body.theme-v2 .fixed-table-container {
  border: 0;
}

body.theme-v2 .table > :not(caption) > * > *,
body.theme-v2 .fixed-table-container .table th,
body.theme-v2 .fixed-table-container .table td {
  border-left: 0;
  border-right: 0;
}

body.theme-v2 .fixed-table-container .table th .sortable,
body.theme-v2 .bootstrap-table .fixed-table-toolbar .search input {
  background-color: #ffffff;
}

body.theme-v2 .fixed-table-toolbar {
  padding-bottom: 12px;
}

body.theme-v2 .fixed-table-pagination {
  font-size: 14px;
  color: #5f6b7a;
}

/* ----- Stránkovanie ----- */

body.theme-v2 .page-link {
  color: #1f2933;
  border: 1px solid #b8c0ca;
  min-width: 40px;
  text-align: center;
}

body.theme-v2 .page-link:hover {
  background: #f1f3f5;
  color: #0f5a7c;
  text-decoration: none;
}

body.theme-v2 .page-item.active .page-link {
  background: #0f5a7c;
  border-color: #0f5a7c;
  color: #ffffff;
  font-weight: 700;
}

body.theme-v2 .page-item.disabled .page-link {
  background: #f7f8fa;
  color: #8a94a1;
}

/* ----- Štítky a upozornenia ----- */

body.theme-v2 .badge.bg-info {
  background: #e6eef2 !important;
  color: #0f5a7c !important;
  font-weight: 500;
}

body.theme-v2 .alert {
  border-radius: 4px;
}

/* ----- Päta ----- */

body.theme-v2 footer.main-footer {
  flex: none;
  max-width: none;
  width: 100%;
  margin: 48px 0 0;
  padding: 24px 0;
  border-radius: 0;
  border-top: 1px solid #d8dde3;
  background: #ffffff;
  line-height: 1.6;
  font-size: 15px;
}

body.theme-v2 footer.main-footer a {
  color: #0f5a7c;
}

body.theme-v2 .footer-links {
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 8px;
}

body.theme-v2 .footer-copyright {
  color: #5f6b7a;
  font-size: 14px;
}

/* ----- Nadpisy stránok a filtre ----- */

body.theme-v2 .page-title {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
}

body.theme-v2 .filter-label {
  font-size: 14px;
  font-weight: 500;
  color: #5f6b7a;
  margin-bottom: 6px;
}

/* ----- Autocomplete (tom-select) ----- */

body.theme-v2 .ts-wrapper.form-control {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.theme-v2 .ts-wrapper .ts-control {
  min-height: 38px;
  border: 1px solid #b8c0ca;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: none;
  font-size: 16px;
}

body.theme-v2 .ts-wrapper.focus .ts-control {
  border-color: #0f5a7c;
  box-shadow: 0 0 0 0.2rem rgba(15, 90, 124, 0.2);
}

/* ----- Filtre v riadku (Uchádzači) ----- */

body.theme-v2 .filter-field {
  min-width: 170px;
  flex-basis: 170px;
}

body.theme-v2 .filter-field-wide {
  flex-grow: 2;
  flex-basis: 260px;
}

body.theme-v2 .col-company {
  width: 220px;
}

body.theme-v2 .col-date {
  width: 160px;
}

body.theme-v2 .col-count {
  width: 160px;
}

body.theme-v2 .list-group-item {
  font-size: 15px;
}

/* ----- Tabuľky v kartách: bez zbytočných posuvníkov ----- */

/* spodná čiara posledného riadku robila 1 px preteč a zvislý posuvník; pod tabuľkou je už čiara päty */
body.theme-v2 .card .table-responsive > .table > tbody > tr:last-child > * {
  border-bottom: 0;
}

/* tabuľky s veľa stĺpcami (História transakcií) sa musia zmestiť do šírky kontajnera */
body.theme-v2 .table.table-compact > :not(caption) > * > * {
  padding-left: 8px;
  padding-right: 8px;
}

/* zlomkové výšky riadkov robili v kontajneri 1 px preteč */
body.theme-v2 .table-responsive {
  overflow-y: hidden;
}

/* hlavičky stĺpcov sa môžu zalomiť, aby sa tabuľka zmestila do šírky kontajnera */
body.theme-v2 .table.table-compact thead th .th-inner {
  white-space: normal;
}

/* ----- Uchádzači ponuky ----- */

body.theme-v2 .offer-subtitle {
  font-size: 18px;
  line-height: 1.4;
}

body.theme-v2 .applicants-filters .filter-field-search {
  flex: 1 1 260px;
  max-width: 360px;
}

body.theme-v2 .applicants-filters .filter-field-status {
  flex: 1 1 220px;
  max-width: 280px;
}

/* filtre vľavo, tlačidlo Stĺpce vpravo */
body.theme-v2 #applicants-table .fixed-table-toolbar {
  align-items: flex-end;
  padding-bottom: 16px;
}

body.theme-v2 #applicants-table .fixed-table-toolbar .bs-bars {
  order: 1;
  margin-left: 0;
  margin-right: auto;
}

body.theme-v2 #applicants-table .fixed-table-toolbar .columns {
  order: 2;
  margin-left: auto;
}

body.theme-v2 .bulk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #eaf2f6;
  border: 1px solid #c9dce6;
  border-radius: 4px;
}

body.theme-v2 .bulk-bar.d-none {
  display: none;
}

body.theme-v2 .table > tbody > tr.selected > * {
  background-color: #f3f8fa;
}

body.theme-v2 .table .bs-checkbox input[type="checkbox"],
body.theme-v2 .table th.bs-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #0f5a7c;
  vertical-align: middle;
}

body.theme-v2 .phase-dot {
  flex: none;
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 50%;
}

body.theme-v2 .file-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #b8c0ca;
  border-radius: 4px;
  color: #0f5a7c;
  font-size: 20px;
  line-height: 1;
}

body.theme-v2 .file-tile:hover {
  border-color: #0f5a7c;
  background: #f1f3f5;
  text-decoration: none;
}

body.theme-v2 .file-tile img {
  max-width: 100%;
  max-height: 100%;
}

body.theme-v2 #applicants-table .fixed-table-toolbar .bs-bars {
  flex: 1 1 auto;
}

body.theme-v2 #applicants-table .columns .btn.dropdown-toggle {
  display: inline-flex;
  align-items: center;
}

body.theme-v2 #applicants-table .columns .btn.dropdown-toggle .caret {
  margin-left: 8px;
}

body.theme-v2 .table > tbody > tr.selected > * {
  --bs-table-bg: #f3f8fa;
  --bs-table-bg-state: #f3f8fa;
  box-shadow: none;
}

/* karta s tabuľkou uchádzačov: hromadné akcie vľavo, Stĺpce vpravo */
body.theme-v2 .bulk-bar {
  margin-bottom: 0;
}

body.theme-v2 #applicants-table .fixed-table-toolbar {
  padding-bottom: 12px;
}

/* ----- Karta s tabuľkou až po okraje (Ponuky, Uchádzači) ----- */

body.theme-v2 .card-flush {
  overflow: hidden;
}

body.theme-v2 .card-flush > .card-body {
  padding: 0;
}

body.theme-v2 .card-flush .fixed-table-toolbar {
  padding: 0;
}

body.theme-v2 .card-flush .table > :not(caption) > tr > :first-child {
  padding-left: 24px;
}

body.theme-v2 .card-flush .table > :not(caption) > tr > :last-child {
  padding-right: 24px;
}

body.theme-v2 .card-flush .fixed-table-pagination {
  margin: 0;
  padding: 12px 24px;
  border-top: 1px solid #d8dde3;
}

/* hlavička stĺpcov má vlastný vnútorný odsadenie 12 px, preto je krajné odsadenie bunky menšie */
body.theme-v2 .card-flush .table > thead > tr > :first-child {
  padding-left: 12px;
}

body.theme-v2 .card-flush .table > thead > tr > :last-child {
  padding-right: 12px;
}

body.theme-v2 .card-flush .fixed-table-container,
body.theme-v2 .card-flush .fixed-table-body {
  border-top: 0;
  margin-top: 0;
}

body.theme-v2 .card-flush .fixed-table-container {
  border: 0 !important;
}

body.theme-v2 .card-flush .table > thead > tr > * {
  border-top: 0;
}

/* karta s obyčajnou tabuľkou: hlavička neprečnieva cez zaoblené rohy */
body.theme-v2 .card-clip {
  overflow: hidden;
}

/* ----- Vytvorenie a úprava ponuky ----- */

body.theme-v2 .offer-form {
  padding-bottom: 24px;
}

body.theme-v2 .offer-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}

body.theme-v2 .offer-main {
  flex: 999 1 640px;
  min-width: 0;
}

body.theme-v2 .offer-section {
  margin-bottom: 24px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #d8dde3;
  border-radius: 6px;
}

body.theme-v2 .offer-main > .offer-section:last-child {
  margin-bottom: 0;
}

body.theme-v2 .offer-section > h2 {
  margin: 0 0 20px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
}

body.theme-v2 .offer-section > h2.mb-1 {
  margin-bottom: 4px;
}

body.theme-v2 .offer-form .form-label,
body.theme-v2 .offer-form label:not(.form-check-label) {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
}

body.theme-v2 .offer-form .form-text,
body.theme-v2 .offer-form .help-text {
  font-size: 14px;
  color: #5f6b7a;
}

body.theme-v2 .offer-form .mb-3 {
  margin-bottom: 20px !important;
}

body.theme-v2 .offer-form .form-control,
body.theme-v2 .offer-form .form-select {
  min-height: 44px;
}

body.theme-v2 .offer-form textarea.form-control {
  min-height: 0;
}

/* zaškrtávacie polia a rádiá */
body.theme-v2 .offer-form .form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 0;
  margin: 0;
  padding: 6px 0;
}

body.theme-v2 .offer-form .form-check .form-check-input,
body.theme-v2 .form-check-input {
  background-color: #ffffff;
}

body.theme-v2 .offer-form .form-check .form-check-input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  float: none;
  accent-color: #0f5a7c;
}

body.theme-v2 .offer-form .form-check .form-check-label {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 400;
  margin: 0;
}

/* viac zaškrtávacích polí do mriežky */
body.theme-v2 div#job_offer_form_employmentType,
body.theme-v2 div#job_offer_edit_form_employmentType,
body.theme-v2 div#job_offer_form_educationLevels,
body.theme-v2 div#job_offer_edit_form_educationLevels,
body.theme-v2 div#job_offer_form_workType,
body.theme-v2 div#job_offer_edit_form_workType {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2px 24px;
}

body.theme-v2 div#job_offer_form_workType,
body.theme-v2 div#job_offer_edit_form_workType {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* balík: výber v kartičkách */
body.theme-v2 div#job_offer_form_package,
body.theme-v2 div#job_offer_edit_form_package {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

body.theme-v2 div#job_offer_form_package .form-check,
body.theme-v2 div#job_offer_edit_form_package .form-check {
  flex: 1 1 170px;
  align-items: flex-start;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #b8c0ca;
  border-radius: 6px;
  cursor: pointer;
}

body.theme-v2 div#job_offer_form_package .form-check:has(input:checked),
body.theme-v2 div#job_offer_edit_form_package .form-check:has(input:checked) {
  padding: 13px 15px;
  background: #eaf2f6;
  border: 2px solid #0f5a7c;
}

body.theme-v2 div#job_offer_form_package .form-check-label,
body.theme-v2 div#job_offer_edit_form_package .form-check-label {
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

/* doplnkové služby: riadky oddelené čiarou */
body.theme-v2 .offer-services .form-check {
  padding: 7px 0;
}

body.theme-v2 .offer-services .form-check + .form-check {
  border-top: 1px solid #e6eaee;
}

/* ----- Zhrnutie objednávky ----- */

body.theme-v2 .offer-summary {
  flex: 0 0 320px;
  box-sizing: border-box;
  position: sticky;
  top: 24px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #d8dde3;
  border-radius: 6px;
}

body.theme-v2 .offer-summary > h2 {
  margin: 0 0 16px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
}

body.theme-v2 .summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 15px;
}

body.theme-v2 .summary-line + .summary-line {
  border-top: 1px solid #e6eaee;
}

body.theme-v2 .summary-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  padding-top: 12px;
  font-size: 17px;
  font-weight: 700;
  border-top: 2px solid #1f2933;
}

body.theme-v2 .offer-summary .btn {
  height: 48px;
  font-size: 16px;
}

body.theme-v2 .offer-summary button[name$="[submit]"],
body.theme-v2 .offer-summary button[name$="[saveToBeChecked]"] {
  color: #ffffff;
  background: #c24a08;
  border: 2px solid #c24a08;
  font-weight: 700;
}

body.theme-v2 .offer-summary button[name$="[submit]"]:hover,
body.theme-v2 .offer-summary button[name$="[saveToBeChecked]"]:hover {
  background: #a43e06;
  border-color: #a43e06;
}

body.theme-v2 .offer-summary button[name$="[saveAsDraft]"] {
  color: #0f5a7c;
  background: #ffffff;
  border: 2px solid #0f5a7c;
  font-weight: 500;
}

body.theme-v2 .offer-summary button[name$="[saveAsDraft]"]:hover {
  background: #eaf2f6;
}

@media (max-width: 991px) {
  body.theme-v2 .offer-summary {
    flex-basis: 100%;
    position: static;
  }
}

body.theme-v2 .form-check-input:checked {
  background-color: #0f5a7c;
}

body.theme-v2 .ts-wrapper.form-select {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.theme-v2 .offer-form .form-check .form-check-input:checked,
body.theme-v2 .form-check-input:checked {
  background-color: #0f5a7c;
  border-color: #0f5a7c;
}

body.theme-v2 .offer-form .ts-wrapper .ts-control {
  min-height: 44px;
  align-items: center;
}

/* ----- Jednoduché formuláre (vytvorenie a úprava firmy, používateľa, fakturačného profilu) ----- */

body.theme-v2 .form-page {
  padding-bottom: 24px;
}

body.theme-v2 .form-page .offer-section {
  max-width: 820px;
}

body.theme-v2 .form-actions {
  max-width: 820px;
  align-items: center;
}

body.theme-v2 .form-actions > div {
  margin: 0 !important;
}

body.theme-v2 .form-actions .btn {
  height: 44px;
  padding: 0 22px;
}

/* prvé tlačidlo je hlavná akcia, ostatné sú vedľajšie */
body.theme-v2 .form-actions > .btn:first-child,
body.theme-v2 .form-actions > div:first-child .btn {
  color: #ffffff;
  background: #c24a08;
  border: 2px solid #c24a08;
  font-weight: 700;
}

body.theme-v2 .form-actions > .btn:first-child:hover,
body.theme-v2 .form-actions > div:first-child .btn:hover {
  background: #a43e06;
  border-color: #a43e06;
}

body.theme-v2 .form-actions > div:not(:first-child) .btn {
  color: #0f5a7c;
  background: #ffffff;
  border: 2px solid #0f5a7c;
  font-weight: 500;
}

body.theme-v2 .form-actions > div:not(:first-child) .btn:hover {
  background: #eaf2f6;
}

body.theme-v2 .form-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.theme-v2 .offer-form .form-actions > div {
  margin: 0 !important;
}

/* starý štýl tlačidla reakcie na ponuku (#job_application_form_submit) neplatí v novej téme */
body.theme-v2 .form-actions #job_application_form_submit {
  margin: 0;
  padding: 0 22px;
  height: 44px;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  background-color: #c24a08;
  border: 2px solid #c24a08;
  border-radius: 4px;
}

body.theme-v2 .form-actions #job_application_form_submit:hover {
  background-color: #a43e06;
  border-color: #a43e06;
  color: #ffffff;
}

/* zvýšený rozpočet: popis a pole v jednom riadku */
body.theme-v2 .budget-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

body.theme-v2 .budget-row label {
  margin: 0;
}

body.theme-v2 .budget-row .small-input-wrapper {
  flex: none;
}

/* ----- Zoznam ponúk (riadok) ----- */

body.theme-v2 .offer-list .offer-row,
body.theme-v2 #job-offers-container .offer-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 24px;
  border-bottom: 1px solid #d8dde3;
}

body.theme-v2 .offer-row:last-child {
  border-bottom: 0;
}

body.theme-v2 .offer-row-main {
  flex: 1;
  min-width: 0;
}

body.theme-v2 .offer-row-title {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 500;
}

body.theme-v2 .offer-row-line {
  font-size: 15px;
  line-height: 1.5;
  margin-top: 2px;
}

body.theme-v2 .offer-row-company {
  font-weight: 500;
}

body.theme-v2 .offer-row-start {
  margin-top: 6px;
  font-size: 14px;
  color: #5f6b7a;
}

body.theme-v2 .offer-row-logo {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 56px;
  padding: 4px;
  box-sizing: border-box;
  border: 1px solid #d8dde3;
  border-radius: 4px;
  background: #ffffff;
}

body.theme-v2 .offer-row-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

/* ----- Detail ponuky ----- */

body.theme-v2 .offer-detail {
  padding-bottom: 32px;
}

body.theme-v2 .offer-detail-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}

body.theme-v2 .offer-detail-main {
  flex: 999 1 620px;
  min-width: 0;
  box-sizing: border-box;
  padding: 28px;
  background: #ffffff;
  border: 1px solid #d8dde3;
  border-radius: 6px;
}

body.theme-v2 .offer-detail-aside {
  flex: 0 0 300px;
  box-sizing: border-box;
  position: sticky;
  top: 24px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #d8dde3;
  border-radius: 6px;
}

body.theme-v2 .offer-detail-header {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

body.theme-v2 .offer-detail-title {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.3px;
}

body.theme-v2 .offer-detail-title.expired {
  color: #3e4c59;
}

body.theme-v2 .offer-detail-company {
  font-size: 17px;
  line-height: 1.5;
}

body.theme-v2 .offer-detail-logo {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 64px;
  padding: 4px;
  box-sizing: border-box;
  border: 1px solid #d8dde3;
  border-radius: 4px;
  background: #ffffff;
}

body.theme-v2 .offer-detail-logo img {
  max-width: 100%;
  max-height: 100%;
}

body.theme-v2 .offer-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px 24px;
  margin-bottom: 32px;
  padding: 20px 24px;
  background: #f7f8fa;
  border: 1px solid #e6eaee;
  border-radius: 6px;
}

body.theme-v2 .offer-fact {
  display: flex;
  align-items: center;
  gap: 14px;
}

body.theme-v2 .offer-fact svg {
  flex: none;
}

body.theme-v2 .offer-fact-label {
  font-size: 13px;
  color: #5f6b7a;
}

body.theme-v2 .offer-fact-value {
  font-size: 16px;
  font-weight: 700;
}

body.theme-v2 .offer-detail-section {
  margin-bottom: 28px;
}

body.theme-v2 .offer-detail-section:last-child {
  margin-bottom: 0;
}

body.theme-v2 .offer-detail-section > h2 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 700;
  color: #0f5a7c;
}

body.theme-v2 .offer-richtext {
  max-width: 68ch;
  line-height: 1.6;
}

body.theme-v2 .offer-richtext ul,
body.theme-v2 .offer-richtext ol {
  margin: 0;
  padding-left: 22px;
}

body.theme-v2 .offer-richtext li {
  margin-bottom: 6px;
  padding-left: 2px;
}

body.theme-v2 .offer-richtext p {
  margin: 0 0 10px;
}

body.theme-v2 .offer-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

body.theme-v2 .offer-gallery img {
  width: 100%;
  height: auto;
  border: 1px solid #d8dde3;
  border-radius: 4px;
}

body.theme-v2 .offer-aside-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  font-size: 16px;
}

body.theme-v2 .offer-aside-btn.btn-accent {
  height: 52px;
  font-size: 17px;
}

body.theme-v2 .offer-aside-heading {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 500;
  color: #5f6b7a;
}

body.theme-v2 .offer-aside-name {
  margin-bottom: 6px;
  font-size: 17px;
  font-weight: 700;
}

body.theme-v2 .offer-aside-line {
  font-size: 15px;
  line-height: 1.7;
  word-break: break-word;
}

body.theme-v2 .status-badge {
  display: inline-block;
  padding: 2px 12px;
  border: 1px solid #b8c0ca;
  border-radius: 14px;
  background: #f7f8fa;
  font-size: 14px;
  font-weight: 500;
  color: #5f6b7a;
}

body.theme-v2 .notice-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: #eaf2f6;
  border: 1px solid #c9dce6;
  border-radius: 6px;
  font-size: 17px;
  font-weight: 500;
}

body.theme-v2 .notice-box i {
  flex: none;
  font-size: 24px;
  line-height: 1.2;
  color: #0f5a7c;
}

@media (max-width: 991px) {
  body.theme-v2 .offer-detail-aside {
    flex-basis: 100%;
    position: static;
    order: -1;
  }

  body.theme-v2 .offer-detail-main {
    padding: 20px;
  }

  body.theme-v2 .offer-detail-title {
    font-size: 26px;
  }
}

/* ----- Verejný zoznam ponúk ----- */

body.theme-v2 .public-list {
  padding-bottom: 32px;
}

body.theme-v2 .selected-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

body.theme-v2 .filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border: 1px solid #0f5a7c;
  border-radius: 16px;
  background: #eaf2f6;
  color: #0f5a7c;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

body.theme-v2 .filter-chip:hover {
  background: #d9e8ef;
}

body.theme-v2 .facet-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

body.theme-v2 .facet-group > legend {
  float: none;
  width: auto;
  margin: 0 0 6px;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  color: #5f6b7a;
}

body.theme-v2 .facet-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0 24px;
}

body.theme-v2 .facet-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  font-size: 15px;
  cursor: pointer;
}

body.theme-v2 .facet-item input[type="checkbox"] {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #0f5a7c;
}

body.theme-v2 .facet-name {
  flex: 1;
  min-width: 0;
}

body.theme-v2 .facet-count {
  font-size: 14px;
  color: #5f6b7a;
}

body.theme-v2 .facet-toggle {
  font-size: 15px;
  font-weight: 500;
}

body.theme-v2 .extra-filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px 32px;
}

body.theme-v2 .extra-filters-grid:empty {
  display: none;
}

body.theme-v2 .facet-group-bool {
  padding-top: 8px;
}

body.theme-v2 .extra-filters-grid .facet-list {
  grid-template-columns: 1fr;
}

body.theme-v2 .offer-list > p {
  margin: 0;
  padding: 20px 24px;
  color: #5f6b7a;
}

body.theme-v2 .pagination {
  gap: 6px;
}

body.theme-v2 .pagination .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  border-radius: 4px;
}

body.theme-v2 .facet-group > legend,
body.theme-v2 .filter-label {
  line-height: 1.5;
}

/* ----- Detail ponuky: menšie odsadenie, farba firmy, kategórie ----- */

body.theme-v2 .offer-detail-layout {
  gap: 16px;
}

body.theme-v2 .offer-detail-main {
  padding: 20px 24px;
}

body.theme-v2 .offer-detail-aside {
  padding: 20px;
}

body.theme-v2 .offer-detail-header {
  margin-bottom: 16px;
}

body.theme-v2 .offer-detail-title {
  margin-bottom: 4px;
}

body.theme-v2 .offer-facts {
  gap: 14px 24px;
  margin-bottom: 20px;
  padding: 14px 18px;
}

body.theme-v2 .offer-detail-section {
  margin-bottom: 20px;
}

body.theme-v2 .offer-detail-section > h2 {
  margin-bottom: 6px;
}

body.theme-v2 .offer-detail-company strong {
  font-weight: 500;
  color: #0f5a7c;
}

body.theme-v2 .offer-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

body.theme-v2 .category-chip {
  display: inline-block;
  padding: 3px 12px;
  border: 1px solid #b9d4f5;
  border-radius: 14px;
  background: #e8f1fc;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: #1558b0;
}

body.theme-v2 .category-chip:hover {
  background: #d4e5fa;
  border-color: #1558b0;
  color: #0f4590;
  text-decoration: none;
}

/* ----- Verejný zoznam: filter vľavo, na malých obrazovkách nad zoznamom ----- */

body.theme-v2 .public-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
}

body.theme-v2 .public-filters .card {
  margin: 0;
}

body.theme-v2 .public-results {
  min-width: 0;
}

@media (min-width: 992px) {
  body.theme-v2 .public-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
  }

  body.theme-v2 .public-filters {
    flex: 0 0 300px;
    width: 300px;
  }

  body.theme-v2 .public-results {
    flex: 1 1 0;
  }

  /* dva stĺpce: všetky možnosti sú rozbalené */
  body.theme-v2 #extra-filters.collapse:not(.show) {
    display: block;
  }

  body.theme-v2 #toggle-filters {
    display: none;
  }

  body.theme-v2 .public-filters .facet-list,
  body.theme-v2 .public-filters .extra-filters-grid {
    grid-template-columns: 1fr;
  }

  body.theme-v2 .public-filters .facet-toggle {
    display: none !important;
  }
}

body.theme-v2 a.category-chip {
  color: #1558b0;
}

body.theme-v2 a.category-chip:hover {
  color: #0f4590;
}

body.theme-v2 a.category-chip {
  text-decoration: none;
}

/* ----- Úvodná stránka ----- */

body.theme-v2 .landing-hero {
  background: #dcebf2 no-repeat left center / cover;
  border-bottom: 1px solid #d8dde3;
  margin-top: -24px;
}

body.theme-v2 .landing-hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px 56px;
  padding-top: 56px;
  padding-bottom: 64px;
}

body.theme-v2 .landing-hero-text {
  flex: 1 1 440px;
  min-width: 0;
}

body.theme-v2 .landing-hero-text h1 {
  margin: 0 0 20px;
  font-size: 52px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #0f5a7c;
}

body.theme-v2 .landing-hero-text p {
  margin: 0 0 32px;
  max-width: 520px;
  font-size: 19px;
  line-height: 1.55;
  color: #3e4c59;
}

body.theme-v2 .landing-flow {
  flex: 1 1 480px;
  min-width: 0;
  display: flex;
  align-items: center;
}

body.theme-v2 .landing-flow-offer {
  flex: none;
  width: 236px;
  background: #fff;
  border: 1px solid #d8dde3;
  border-radius: 6px;
  padding: 20px;
  font-size: 15px;
}

body.theme-v2 .landing-flow-label {
  font-size: 13px;
  font-weight: 500;
  color: #c24a08;
  margin-bottom: 10px;
}

body.theme-v2 .landing-flow-title {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  color: #0f5a7c;
  margin-bottom: 8px;
}

body.theme-v2 .landing-flow-channels {
  position: relative;
  flex: 1;
  min-width: 0;
  margin-left: 56px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.theme-v2 .landing-flow-channels::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 26px;
  bottom: 26px;
  width: 2px;
  background: #c24a08;
}

body.theme-v2 .landing-flow-channels::after {
  content: "";
  position: absolute;
  left: -56px;
  top: 50%;
  width: 28px;
  height: 2px;
  background: #c24a08;
}

body.theme-v2 .landing-flow-channel {
  position: relative;
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  background: #fff;
  border: 1px solid #d8dde3;
  border-radius: 6px;
  font-weight: 500;
}

body.theme-v2 .landing-flow-channel::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 50%;
  width: 28px;
  height: 2px;
  background: #c24a08;
}

body.theme-v2 .landing-search {
  padding-top: 48px;
}

body.theme-v2 .landing-search h2 {
  margin: 0 0 20px;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
}

body.theme-v2 .landing-search-card {
  padding: 20px 24px;
}

body.theme-v2 .landing-benefits {
  padding-top: 56px;
}

body.theme-v2 .landing-benefits h2 {
  margin: 0 0 28px;
  text-align: center;
  font-size: 32px;
  line-height: 1.25;
  font-weight: 700;
  color: #0f5a7c;
}

body.theme-v2 .landing-benefits-card {
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d8dde3;
  border-radius: 6px;
}

body.theme-v2 .landing-benefit {
  flex: 1 1 240px;
  padding: 32px 28px 36px;
  text-align: center;
  box-shadow: 1px 0 0 #d8dde3;
}

body.theme-v2 .landing-benefit h3 {
  margin: 14px 0 12px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  color: #ee6f17;
}

body.theme-v2 .landing-benefit p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: #3e4c59;
}

@media (max-width: 767.98px) {
  body.theme-v2 .landing-hero-text h1 {
    font-size: 36px;
  }

  body.theme-v2 .landing-flow {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  body.theme-v2 .landing-flow-offer {
    width: auto;
  }

  body.theme-v2 .landing-flow-channels {
    margin-left: 0;
  }

  body.theme-v2 .landing-flow-channels::before,
  body.theme-v2 .landing-flow-channels::after,
  body.theme-v2 .landing-flow-channel::before {
    display: none;
  }

  body.theme-v2 .landing-benefit {
    box-shadow: 0 1px 0 #d8dde3;
  }
}

body.theme-v2 .landing-search-btns .btn {
  height: 48px;
  display: inline-flex;
  align-items: center;
}

body.theme-v2 .landing-search-card .form-control {
  height: 48px;
}

body.theme-v2 .landing-search-field {
  flex: 0 1 300px;
  min-width: 200px;
}

body.theme-v2 .landing-search-btns {
  margin-left: 8px;
}

body.theme-v2 .landing-search-btns .btn {
  justify-content: center;
  min-width: 150px;
  padding: 0 32px;
  font-size: 17px;
  font-weight: 700;
}

body.theme-v2 .landing-search-btns .btn-outline-primary {
  font-weight: 500;
}

@media (max-width: 767.98px) {
  body.theme-v2 .landing-search-field {
    flex-basis: 100%;
  }

  body.theme-v2 .landing-search-btns {
    margin-left: 0;
    width: 100%;
  }

  body.theme-v2 .landing-search-btns .btn {
    flex: 1;
    min-width: 0;
    padding: 0 12px;
    white-space: nowrap;
  }
}

body.theme-v2 .landing-hero-inner {
  justify-content: flex-end;
  min-height: 440px;
}

body.theme-v2 .landing-hero-text {
  flex: 0 1 540px;
  padding: 36px 40px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(15, 90, 124, 0.15);
}

body.theme-v2 .landing-hero-text h1 {
  font-size: 44px;
}

@media (max-width: 767.98px) {
  body.theme-v2 .landing-hero {
    background-position: 20% top;
  }

  body.theme-v2 .landing-hero-inner {
    min-height: 0;
    padding-top: 300px;
    padding-bottom: 24px;
  }

  body.theme-v2 .landing-hero-text {
    flex-basis: 100%;
    padding: 24px 20px;
  }

  body.theme-v2 .landing-hero-text h1 {
    font-size: 32px;
  }
}

body.theme-v2 .landing-publish {
  margin-top: 56px;
  padding: 56px 0 64px;
  background: #e4eef3;
  border-top: 1px solid #d3e2ea;
  border-bottom: 1px solid #d3e2ea;
}

body.theme-v2 .landing-publish h2 {
  margin: 0 0 28px;
  text-align: center;
  font-size: 32px;
  line-height: 1.25;
  font-weight: 700;
  color: #0f5a7c;
}

body.theme-v2 .landing-publish-card {
  display: flex;
  justify-content: center;
  padding: 40px 24px;
  background: #fff;
  border: 1px solid #d8dde3;
  border-radius: 6px;
}

body.theme-v2 .landing-publish-card .landing-flow {
  flex: 0 1 760px;
}

body.theme-v2 .landing-publish-card .landing-flow-offer,
body.theme-v2 .landing-publish-card .landing-flow-channel {
  background: #f1f3f5;
}
