@import url("../lib/bootstrap/bootstrap-zlvO1Io.css");
body {
  padding-top: 84px;
}

/* Public landing page */
.home-landing {
  width: min(100%, 1660px);
  margin: 0 auto;
}

.home-landing__panel {
  position: relative;
  display: grid;
  min-height: min(720px, calc(100vh - 150px));
  padding: clamp(1rem, 2.5vw, 2rem);
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 2rem;
  box-shadow: 0 28px 70px rgba(23, 39, 53, 0.11);
}

.home-landing__panel::after {
  position: absolute;
  top: -185px;
  right: -155px;
  width: 430px;
  height: 430px;
  pointer-events: none;
  border: 1px solid rgba(201, 40, 62, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 72px rgba(201, 40, 62, 0.035), 0 0 0 145px rgba(201, 40, 62, 0.025);
  content: "";
}

.home-landing__visual {
  position: relative;
  min-height: 610px;
  padding: clamp(1rem, 2.4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.18), transparent 28%), linear-gradient(145deg, #172531, #243643 66%, #55313d);
  border-radius: 1.55rem;
}

.home-landing__illustration {
  width: min(88%, 620px);
  max-height: 540px;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: saturate(0.84) contrast(1.03);
  border-radius: 1.25rem;
  box-shadow: 0 24px 55px rgba(4, 15, 24, 0.28);
}

.home-landing__visual-label,
.home-landing__visual-note {
  position: absolute;
  z-index: 2;
  color: #fff;
  background: rgba(24, 37, 48, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 30px rgba(4, 15, 24, 0.2);
  backdrop-filter: blur(12px);
}

.home-landing__visual-label {
  top: 1.4rem;
  left: 1.4rem;
  padding: 0.65rem 0.85rem;
  color: #ffc0c8;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-landing__visual-label i {
  margin-right: 0.35rem;
}

.home-landing__visual-note {
  right: 1.4rem;
  bottom: 1.4rem;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  border-radius: 0.9rem;
}

.home-landing__visual-note strong {
  font-size: 0.98rem;
}

.home-landing__visual-note span {
  margin-top: 0.12rem;
  color: #cbd5dc;
  font-size: 0.82rem;
}

.home-landing__content {
  position: relative;
  z-index: 1;
  max-width: 650px;
  padding-right: clamp(0.5rem, 3vw, 2.5rem);
}

.home-landing__eyebrow {
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #657480;
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-landing__mark {
  color: var(--foi-green-600);
  font-size: 1.7rem;
  font-weight: 850;
  letter-spacing: -0.08em;
  line-height: 1;
  text-transform: lowercase;
}

.home-landing__content h1 {
  max-width: 650px;
  margin: 0;
  color: #17232e;
  font-size: clamp(3.25rem, 5.6vw, 6.4rem);
  font-weight: 790;
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.home-landing__content h1 span {
  color: var(--foi-green-600);
}

.home-landing__lead {
  max-width: 590px;
  margin: 1.6rem 0 1.25rem;
  color: #5f6f7d;
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.65;
}

.home-landing__lead a {
  color: var(--foi-green-600);
  text-decoration-color: rgba(201, 40, 62, 0.35);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
  font-weight: 700;
}

.home-landing__lead a:hover,
.home-landing__lead a:focus {
  color: var(--foi-green-700);
  text-decoration-color: currentColor;
}

.home-landing__audiences {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.home-landing__audiences span {
  padding: 0.55rem 0.78rem;
  color: #344553;
  background: #fff;
  border: 1px solid var(--foi-border);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 650;
}

.home-landing__audiences i {
  margin-right: 0.3rem;
  color: var(--foi-green-600);
}

.home-landing__actions {
  margin-top: 1.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.home-landing__actions .btn {
  min-height: 54px;
  padding: 0.82rem 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 0.8rem;
  font-size: 0.98rem;
  font-weight: 720;
}

.home-landing__actions .btn-primary {
  min-width: 155px;
  box-shadow: 0 12px 28px rgba(170, 32, 52, 0.2);
}

.home-landing__actions .btn-outline-secondary {
  color: #344553;
  background: rgba(255, 255, 255, 0.65);
  border-color: var(--foi-border-strong);
}

.home-landing__notice {
  max-width: 610px;
  margin: 1.35rem 0 0;
  padding-top: 1rem;
  color: #778592;
  border-top: 1px solid var(--foi-border);
  font-size: 0.82rem;
  line-height: 1.55;
}

.home-landing__notice i {
  margin-right: 0.3rem;
  color: var(--foi-green-600);
}

.home-benefits {
  margin-top: 1rem;
  padding: 1.1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 1.35rem;
  box-shadow: var(--foi-shadow-sm);
}

.home-benefit {
  min-width: 0;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border-right: 1px solid var(--foi-border);
}

.home-benefit:last-child {
  border-right: 0;
}

.home-benefit > i {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--foi-green-600);
  background: var(--foi-green-100);
  border-radius: 0.8rem;
}

.home-benefit div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.home-benefit strong {
  color: #263542;
  font-size: 0.92rem;
}

.home-benefit span {
  margin-top: 0.15rem;
  color: #74828e;
  font-size: 0.78rem;
  line-height: 1.4;
}

@media (max-width: 1199.98px) {
  .home-landing__panel {
    min-height: auto;
    grid-template-columns: minmax(0, 0.9fr) minmax(390px, 1.1fr);
  }

  .home-landing__visual {
    min-height: 520px;
  }
}

@media (max-width: 991.98px) {
  .home-landing__panel {
    padding: 1rem;
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .home-landing__content {
    max-width: none;
    padding: 1rem 1rem 1.5rem;
    grid-row: 1;
  }

  .home-landing__visual {
    min-height: 430px;
    grid-row: 2;
  }

  .home-benefits {
    grid-template-columns: 1fr;
  }

  .home-benefit {
    border-right: 0;
    border-bottom: 1px solid var(--foi-border);
  }

  .home-benefit:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 575.98px) {
  .home-landing__panel {
    padding: 0.7rem;
    border-radius: 1.35rem;
  }

  .home-landing__content {
    padding: 1rem 0.65rem 0.75rem;
  }

  .home-landing__eyebrow {
    margin-bottom: 0.9rem;
  }

  .home-landing__content h1 {
    font-size: clamp(2.65rem, 13vw, 3.55rem);
  }

  .home-landing__lead {
    margin-top: 1.2rem;
    font-size: 1rem;
    line-height: 1.55;
  }

  .home-landing__actions,
  .home-landing__actions .btn {
    width: 100%;
  }

  .home-landing__visual {
    min-height: 330px;
    border-radius: 1rem;
  }

  .home-landing__illustration {
    width: 96%;
  }

  .home-landing__visual-label {
    top: 0.8rem;
    left: 0.8rem;
  }

  .home-landing__visual-note {
    right: 0.8rem;
    bottom: 0.8rem;
  }

  .home-benefits {
    padding: 0.55rem;
    border-radius: 1rem;
  }
}

.app-page-content {
  padding: 1rem 40px 40px;
}

@media (max-width: 767.98px) {
  .app-page-content {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .app-topbar .nav-link > .d-block.d-md-none,
  .app-topbar a.nav-link.d-block.d-md-none {
    display: none !important;
  }

  .app-topbar .nav-link > .d-none.d-md-block.d-xl-block {
    display: block !important;
  }

  .app-topbar a.nav-link.d-none.d-md-block.d-xl-block {
    display: flex !important;
  }
}

#wrapper{
  padding-bottom: 0;
}

.edit-frame{
  border: 1px solid #3e6fb7;
  padding: 20px;
  margin-top: 30px;
  border-radius: 0.2rem;
}

.card-title {
  margin-bottom: 0rem;
}

.form-group > label {
  text-align: right;
}

.badge {
  font-weight: 400;
}

.form-group{
  padding-bottom: 10px;
}

.page-container {
  position: relative;

}

.wraper{
  padding-bottom: 80px;
}

.footer{
  position: fixed;
  width: 100%;
  bottom: 0;
  background: #3e6fb7;
  text-align: center;
  padding: 20px;
  color: #eeeeee;
}

.course-title{
  text-align: center;
}

.user-profile{
  display: block;
  width: 100%;
  padding: 0.25rem 1.5rem;
  clear: both;
  color: #212529;
  text-align: inherit;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
  cursor: default;
  font-weight: bold;
}

.logo {

}

.card-title {
  margin-bottom: 0.1rem;
}

.app-title{
  padding-left: 10px;
  font-size: 1.5em;
}

.badge-link A:link{
  color: #FFFFFF;
}

.total-icon{
  font-size: 2em;
  color: #ce003d;
}

.meeting-id{
  font-size: 1.5em;
  padding: 10px;
  display: block;
  background-color: #0f84ad;
  color: #FFFFFF;
  margin-top: 20px;
}

.meta-id{
  font-size: 1.5em;
  padding: 10px;
  display: block;
  background-color: #0f84ad;
  color: #FFFFFF;
  margin-top: 20px;
  margin-bottom: 20px;
}

.btn-primary {
  color: #fff;
  background-color: #3e6fb7;
  border-color: #3e6fb7;
}

.btn-danger{
  background-color: #d96d75!important;
}

.badge-primary {
  color: #fff;
  background-color: #3e6fb7;
}

.lms-origin{
  color: #888;
}

#wrapper{

}

.main-nav{

}

.workload-planning a{
  text-decoration: none;
}

.workload-planning .cancel-rearrange-item a{
  padding: 1px 5px;
  font-size: 10px;
}

.workload-planning .final-delete-unit{
  color: #fff;
}

.scroll-handle:hover{
  cursor: pointer;
}

/*!
 * Start Bootstrap - Simple Sidebar (https://startbootstrap.com/template-overviews/simple-sidebar)
 * Copyright 2013-2019 Start Bootstrap
 * Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap-simple-sidebar/blob/master/LICENSE)
 */
body {
  overflow-x: hidden;
}

.date-range{
  font-size: 1.2em;
}

.card-header-data-range{
  background-color: #ffffff;
  border-bottom: 0;
}

.navbar-foi{
  background-color: #3e6fb7;
}
.navbar-light .navbar-nav .nav-link {
  color: #ffffff!important;
}



.left-menu-toggle{
  color: #ffffff;
}

.left-menu-toggle:hover{
  color: #cccccc;
}

.custom-toggler.navbar-toggler {
  border-color: #ffffff;
}
.navbar-light .navbar-nav .nav-link {
  color: #ffffff;
}

.navbar-light .navbar-nav .nav-link:hover, .navbar-light .navbar-nav .nav-link:focus {
  color: #cccccc;
}

.left-menu-toggle{
  font-size: 1.7em;
  padding-right: 5px;
}

.dropdown-special-outside {
  position: absolute!important;
}


/* Navigacijske kartice za planiranje nastave */
/* BEGIN */
.nav-tabs {
  border-bottom: solid 0 #3e6fb7;
  justify-content: center;
  text-transform: uppercase;
}

.nav-tabs .nav-link {
  font-size: 1.25rem;
  border: none;
  width: 12rem;
  text-align: center;
  padding-left: 0;
  padding-right: 0;
  border-bottom: solid 5px #dddddd!important;
}

.nav-tabs .nav-link.active {
  background-color: #ffffff !important;
  color: #000000 !important;
  border: none;
  border-bottom: solid 5px #3e6fb7!important;
}

.nav-tabs .nav-link.inactive {
  background-color: #ffffff;
  color: #000000;
  border-bottom: solid 5px #dddddd!important;
}

.nav-tabs .nav-link.inactive:hover {
  border-bottom: solid 5px #3e6fb7!important;
}
/* END */

/* Panel */
/* BEGIN */
.panel {
  display: flex;
  align-items: stretch;
}

.panel > .panel-handle {
  display: flex;
  align-items: center;
  background-color: #3e6fb7;
  padding: 0.5rem 0;
  border: solid 1px rgba(0, 0, 0, 0.125);
}

.panel.flex-row > .panel-handle {
  min-width: 1.25rem;
}

.panel.flex-column > .panel-handle {
  min-height: 1.25rem;
}

.panel.flex-row > .panel-handle:first-child:not(:only-child) {
  border-top-left-radius: 0.2rem;
  border-bottom-left-radius: 0.2rem;
}

.panel.flex-row > .panel-handle:last-child:not(:only-child) {
  border-top-right-radius: 0.2rem;
  border-bottom-right-radius: 0.2rem;
}

.panel.flex-column > .panel-handle:first-child {
  border-top-left-radius: 0.2rem;
  border-top-right-radius: 0.2rem;
}

.panel.flex-column > .panel-handle:last-child {
  border-bottom-left-radius: 0.2rem;
  border-bottom-right-radius: 0.20rem;
}

.panel-content {
  display: flex;
  flex-direction: column;
}

.panel-content > .panel-header {
  border-top-right-radius: 0.2rem;
  border-top-left-radius: 0.2rem;
  background-color: #FFFFFF;
}



.panel-content > .panel-body {
  border-bottom-right-radius: 0.25rem;
  border-bottom-left-radius: 0.25rem;
}

.panel > .panel-handle + .panel-content > .panel-header,
.panel > .panel-handle + .panel-content > .panel-body {
  border-left: none;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.panel > .panel-content {
  flex-grow: 1;
}

.panel-header {
  background-color: rgba(0, 0, 0, 0.03);
  padding: 0.5rem 1rem;
  border: solid 1px rgba(0, 0, 0, 0.125);
}

a.panel-header {
  text-decoration: none;
  color: initial;
}

.panel-body {
  padding: 0.5rem;
  border: solid 1px rgba(0, 0, 0, 0.125);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.panel-header + .panel-body {
  border-top: none;
}

.panel.panel-blue > .panel-handle {
  background-color: #3e6fb7;
  color: white;
  border-color: #3e6fb7;
}

.panel.panel-blue > .panel-content > .panel-header {
  border-top-color: #3e6fb7;
  border-right-color: #3e6fb7;
}

.panel.panel-blue > .panel-content > .panel-body {
  border-bottom-color: #3e6fb7;
  border-right-color: #3e6fb7;
}
/* END */

/* Item container */
/* BEGIN */
.item-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  row-gap: 0.4rem;
  column-gap: 0.4rem;
}

@media screen and (min-width: 2500px) {
  .item-container {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media screen and (max-width: 1799px) {
  .item-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 1389px) {
  .item-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 959px) {
  .item-container {
    grid-template-columns: 1fr;
  }
}
/* END */

/* Unit chart */
/* BEGIN */
.unit-chart {
  display: flex;
  flex-direction: row;
  height: 2.5rem;
  border-radius: 0.50rem;
  background-color: rgba(0, 0, 0, 0.063);
}

.unit-chart > .unit-chart-item:first-child {
  border-top-left-radius: 0.50rem;
  border-bottom-left-radius: 0.50rem;
}

.unit-chart > .unit-chart-item:last-child {
  border-top-right-radius: 0.50rem;
  border-bottom-right-radius: 0.50rem;
}
/* END* /

/* Active and inactive item badges */
/* BEGIN */
.badge-active {
  color: white;
  background-color: #a6c584;
}

.badge-inactive {
  color: rgba(0, 0, 0, 0.25);
  background-color: rgba(0, 0, 0, 0.25);
}
/* END */

/* Course details */
/* BEGIN */
.course-details.card {
  border: none;
}
.course-details :is(.card-header, .card-footer) {
  background-color: #9eb5db;
  border: solid 1px rgba(0, 0, 0, 0.125);
  font-weight: bold;
}

.analysis-details  {
  background-color: #9eb5db;
  border: solid 1px rgba(0, 0, 0, 0.125);
  font-weight: bold;
}

.course-details .card-body {
  border-left: solid 1px rgba(0, 0, 0, 0.125);
  border-right: solid 1px rgba(0, 0, 0, 0.125);
}
.course-details .card-body:last-child {
  border-bottom: solid 1px rgba(0, 0, 0, 0.125);
  border-bottom-left-radius: 0.25rem;
  border-bottom-right-radius: 0.25rem;
}
.course-details .card-title {

}

.learning-outcome-table td {
  vertical-align: middle;
}
.learning-outcome-table tfoot :is(td, th) {
  border-bottom: none;
}
/* END */

/* Badge info */
/* BEGIN */
.badge.badge-info {
  background-color: #41B3D9;
}
/* END */


#sidebar-wrapper {
  min-height: 100vh;
  margin-left: -15rem;
  -webkit-transition: margin .25s ease-out;
  -moz-transition: margin .25s ease-out;
  -o-transition: margin .25s ease-out;
  transition: margin .25s ease-out;
}

#sidebar-wrapper .list-group{
  width: 15rem;
}

#wrapper.toggled #sidebar-wrapper {
  margin-left: 0;
}

@media (min-width: 1920px) {
  .workload-planning th,
  .workload-planning td{
    width: 140px;
  }
}

@media (max-width:1919px) and (min-width:1499px) {
  .workload-planning th,
  .workload-planning td{
    width: 115px;
  }
}

@media (max-width: 1500px){
  .workload-planning th,
  .workload-planning td{
    width: 99px;
  }
}

@media (min-width: 768px) {
  /*
  #sidebar-wrapper {
    position: absolute;
    z-index: 1;
  }

}*/

  #sidebar-wrapper .sidebar-heading {
    padding: 0.875rem 1.25rem;
    font-size: 1.2rem;
  }

  #sidebar-wrapper .list-group {
    width: 15rem;
  }

  #page-content-wrapper {
    min-width: 100vw;
  }
}

@media (min-width: 768px) {
  #sidebar-wrapper {
    margin-left: 0;
  }

  #page-content-wrapper {
    min-width: 0;
    width: 100%;
  }

  #wrapper.toggled #sidebar-wrapper {
    margin-left: -15rem;
  }

}

.form-control {
  appearance: auto;
}









.dataTables_wrapper .dataTables_paginate .current {
  font-weight: bold;
  color: #FFFFFF;
  background: #AAAAAA;
}
a {
  text-decoration: none;
  color: #3e6fb7;
}

.form-label{
  font-weight: 600;
}

.required:after {
  content:" *";
  color: #9a3412;
}

/* --------------------------------------------------------------------------
   FOI Forms UI 2026
   Shared visual system for student applications and employee requests.
   -------------------------------------------------------------------------- */

:root {
  --foi-navy-950: #071b33;
  --foi-navy-900: #0b2442;
  --foi-navy-800: #12355b;
  --foi-blue-600: #2563a7;
  --foi-green-700: #116648;
  --foi-green-600: #167d5a;
  --foi-green-500: #20966f;
  --foi-green-100: #dff4ec;
  --foi-canvas: #f4f7fa;
  --foi-surface: #ffffff;
  --foi-surface-muted: #f8fafc;
  --foi-border: #dce4ec;
  --foi-border-strong: #c5d1dc;
  --foi-text: #17263a;
  --foi-text-muted: #627184;
  --foi-action-primary: #16758a;
  --foi-action-primary-hover: #105f71;
  --foi-action-primary-soft: #e5f3f6;
  --foi-action-edit: #d28a18;
  --foi-action-edit-hover: #ad6e0c;
  --foi-danger: #c93f4d;
  --foi-warning: #e9a23b;
  --foi-radius-sm: 0.55rem;
  --foi-radius: 0.85rem;
  --foi-radius-lg: 1.15rem;
  --foi-shadow-sm: 0 2px 8px rgba(11, 36, 66, 0.07);
  --foi-shadow: 0 12px 30px rgba(11, 36, 66, 0.09);
  --foi-focus: 0 0 0 0.22rem rgba(32, 150, 111, 0.2);
}

html {
  min-height: 100%;
  background: var(--foi-canvas);
}

body.app-shell {
  min-height: 100vh;
  padding-top: 76px;
  background: var(--foi-canvas);
  color: var(--foi-text);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.975rem;
  line-height: 1.55;
}

body.app-login {
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
}

body.app-shell::before {
  position: fixed;
  z-index: -1;
  top: 76px;
  right: 0;
  left: 0;
  height: 220px;
  background: linear-gradient(180deg, rgba(220, 232, 243, 0.55), rgba(244, 247, 250, 0));
  content: "";
  pointer-events: none;
}

.app-topbar {
  min-height: 76px;
  padding: 0.35rem clamp(1rem, 2.8vw, 3rem);
  background: linear-gradient(112deg, var(--foi-navy-950), var(--foi-navy-800) 72%, #174873);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 28px rgba(7, 27, 51, 0.18);
}

.app-brand {
  display: inline-flex;
  align-items: center;
  min-width: 8.5rem;
  margin-right: 1rem;
  color: #fff;
  text-decoration: none;
}

.app-brand__logo {
  width: 120px;
  height: 62px;
  object-fit: contain;
  mix-blend-mode: screen;
}

.app-topbar .navbar-nav {
  align-items: center;
  gap: 0.2rem;
}

.app-topbar .navbar-nav .nav-link {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0.65rem 0.82rem;
  color: rgba(255, 255, 255, 0.84) !important;
  border-radius: 0.65rem;
  font-size: 0.91rem;
  font-weight: 600;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.app-topbar .navbar-nav .nav-link:hover,
.app-topbar .navbar-nav .nav-link:focus,
.app-topbar .navbar-nav .nav-link[aria-current="page"] {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.12);
}

.app-topbar .navbar-nav .nav-link:active {
  transform: translateY(1px);
}

.app-topbar .dropdown-menu {
  min-width: 13.5rem;
  margin-top: 0.55rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--foi-border);
  border-radius: var(--foi-radius);
  box-shadow: var(--foi-shadow);
}

.app-topbar .dropdown-item {
  padding: 0.65rem 0.75rem;
  color: var(--foi-text);
  border-radius: 0.55rem;
  font-weight: 500;
}

.app-topbar .dropdown-item:hover,
.app-topbar .dropdown-item:focus {
  color: var(--foi-green-700);
  background: var(--foi-green-100);
}

.app-page-content {
  width: min(100%, 1720px);
  min-height: calc(100vh - 230px);
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 3rem) clamp(1rem, 3vw, 3rem) 4rem;
}

.app-page-content > .container,
.app-page-content > div > .container {
  max-width: 1440px;
}

.course-title {
  margin-bottom: 1.35rem;
  text-align: left !important;
}

.course-title h1,
.app-page-content > h1,
.app-page-content .container-fluid > h1 {
  margin: 0;
  color: var(--foi-navy-900);
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  font-weight: 750;
  letter-spacing: -0.035em;
}

.course-title h1 a {
  color: var(--foi-text-muted);
  font-size: 0.62em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-tabs.planning-tabs {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 1.75rem !important;
  padding: 0.3rem;
  overflow-x: auto;
  flex-wrap: nowrap;
  justify-content: flex-start;
  background: #e8eef4;
  border: 0;
  border-radius: 0.8rem;
  text-transform: none;
}

.nav-tabs.planning-tabs .nav-link {
  width: auto;
  min-width: max-content;
  padding: 0.6rem 1rem;
  color: var(--foi-text-muted) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0.58rem;
  font-size: 0.91rem;
  font-weight: 650;
  line-height: 1.35;
}

.nav-tabs.planning-tabs .nav-link.active {
  color: var(--foi-navy-900) !important;
  background: #fff !important;
  box-shadow: 0 1px 5px rgba(11, 36, 66, 0.11);
}

.nav-tabs.planning-tabs .badge {
  min-width: 1.35rem;
  margin-left: 0.35rem;
  vertical-align: 0.05em;
}

.edit-frame {
  margin-top: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  background: var(--foi-surface);
  border: 1px solid var(--foi-border);
  border-radius: var(--foi-radius-lg);
  box-shadow: var(--foi-shadow-sm);
}

.card,
.panel-content,
.modal-content {
  border-color: var(--foi-border);
  border-radius: var(--foi-radius);
}

.card {
  background: var(--foi-surface);
  box-shadow: var(--foi-shadow-sm);
}

.card-header,
.card-footer {
  background: var(--foi-surface-muted);
  border-color: var(--foi-border);
}

.application .card.course {
  position: relative;
  margin-right: 0 !important;
  overflow: hidden;
  border: 1px solid var(--foi-border);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.application .card.course:hover {
  top: 0;
  transform: translateY(-4px);
  border-color: #aec2d4;
  box-shadow: 0 18px 38px rgba(11, 36, 66, 0.14);
}

.application .fill-course {
  position: relative;
  height: 155px !important;
  overflow: hidden;
  background: linear-gradient(135deg, #d7e2ec, #ecf2f7) !important;
}

.application .fill-course::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(7, 27, 51, 0.18));
  content: "";
  pointer-events: none;
}

.application .card-img-top {
  height: 100%;
  object-fit: cover;
}

.application .card-title {
  margin: 0 !important;
  padding: 1.15rem 1.25rem 0 !important;
  color: var(--foi-navy-900);
  text-align: left;
}

.application .card-body {
  padding: 0.75rem 1.25rem 1.15rem;
  color: var(--foi-text-muted);
  text-align: left;
}

.application .card-footer {
  padding: 0 1.25rem 1.2rem !important;
  background: #fff !important;
}

.btn {
  padding: 0.58rem 0.92rem;
  border-radius: var(--foi-radius-sm);
  font-size: 0.91rem;
  font-weight: 650;
  box-shadow: none;
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: var(--foi-green-500);
  box-shadow: var(--foi-focus);
}

.btn-primary {
  color: #fff;
  background: var(--foi-action-primary);
  border-color: var(--foi-action-primary);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  color: #fff;
  background: var(--foi-action-primary-hover);
  border-color: var(--foi-action-primary-hover);
  box-shadow: 0 5px 14px rgba(16, 95, 113, 0.22);
}

.btn-secondary {
  color: var(--foi-navy-900);
  background: #e6edf3;
  border-color: #d4dee7;
}

.btn-secondary:hover {
  color: var(--foi-navy-900);
  background: #d8e2ea;
  border-color: #c4d1dc;
}

.btn-warning {
  color: #fff;
  background: var(--foi-action-edit);
  border-color: var(--foi-action-edit);
}

.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active {
  color: #fff;
  background: var(--foi-action-edit-hover);
  border-color: var(--foi-action-edit-hover);
  box-shadow: 0 5px 14px rgba(173, 110, 12, 0.22);
}

.btn-danger {
  color: #fff;
  background: var(--foi-danger);
  border-color: var(--foi-danger);
}

.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active {
  color: #fff;
  background: #aa2f3c;
  border-color: #aa2f3c;
  box-shadow: 0 5px 14px rgba(170, 47, 60, 0.22);
}

.form-control,
.form-select,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  min-height: 44px;
  padding: 0.58rem 0.78rem;
  color: var(--foi-text);
  background-color: #fff;
  border: 1px solid var(--foi-border-strong);
  border-radius: var(--foi-radius-sm);
}

textarea.form-control {
  min-height: 8rem;
}

.form-label,
.form-group > label,
legend.col-form-label {
  margin-bottom: 0.4rem;
  color: #33445a;
  text-align: left;
  font-size: 0.88rem;
  font-weight: 650;
}

.form-group {
  padding-bottom: 1rem;
}

.table-responsive,
.dt-container {
  color: var(--foi-text);
}

table.table,
table.dataTable {
  width: 100%;
  margin: 0 0 1rem !important;
  background: #fff;
  border-collapse: separate !important;
  border-spacing: 0;
  border: 1px solid var(--foi-border) !important;
  border-radius: var(--foi-radius);
  box-shadow: var(--foi-shadow-sm);
}

table.table > thead > tr > th,
table.table > thead > tr > td,
table.dataTable > thead > tr > th,
table.dataTable > thead > tr > td {
  padding: 0.82rem 0.9rem;
  color: #496077;
  background: #eef3f7;
  border: 0 !important;
  border-bottom: 1px solid var(--foi-border-strong) !important;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  vertical-align: middle;
}

table.table > tbody > tr > td,
table.dataTable > tbody > tr > td {
  padding: 0.85rem 0.9rem;
  color: var(--foi-text);
  background: #fff;
  border: 0 !important;
  border-bottom: 1px solid #e8edf2 !important;
  vertical-align: middle;
}

table.table-striped > tbody > tr:nth-of-type(odd) > *,
table.dataTable.stripe > tbody > tr.odd > * {
  --bs-table-accent-bg: #fbfcfd;
  background: #fbfcfd;
  color: var(--foi-text);
}

table.table > tbody > tr:hover > td,
table.dataTable > tbody > tr:hover > * {
  background: #f0f8f5 !important;
}

table.table > tbody > tr:last-child > td {
  border-bottom: 0 !important;
}

.case-sheet table.case-rounded-table {
  overflow: hidden;
}

.case-sheet table.case-rounded-table > thead:first-child > tr:first-child > th:first-child,
.case-sheet table.case-rounded-table > thead:first-child > tr:first-child > td:first-child {
  border-top-left-radius: calc(var(--foi-radius) - 1px);
}

.case-sheet table.case-rounded-table > thead:first-child > tr:first-child > th:last-child,
.case-sheet table.case-rounded-table > thead:first-child > tr:first-child > td:last-child {
  border-top-right-radius: calc(var(--foi-radius) - 1px);
}

.case-sheet table.case-rounded-table > tbody:last-child > tr:last-child > td:first-child {
  border-bottom-left-radius: calc(var(--foi-radius) - 1px);
}

.case-sheet table.case-rounded-table > tbody:last-child > tr:last-child > td:last-child {
  border-bottom-right-radius: calc(var(--foi-radius) - 1px);
}

.payment-receivers-list .accordion-item {
  margin-bottom: 0.65rem;
  overflow: hidden;
  border: 1px solid var(--foi-border);
  border-radius: var(--foi-radius) !important;
  box-shadow: var(--foi-shadow-sm);
}

.payment-receivers-list .accordion-button,
.payment-receivers-list .accordion-button.collapsed {
  border-radius: calc(var(--foi-radius) - 1px) !important;
}

.payment-receivers-list .accordion-button:not(.collapsed) {
  border-bottom-right-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

.payment-receivers-list .accordion-body .table {
  overflow: hidden;
}

.dt-container .dt-search input,
.dataTables_wrapper .dataTables_filter input {
  min-height: 40px;
  margin-left: 0.5rem;
  border: 1px solid var(--foi-border-strong) !important;
  border-radius: var(--foi-radius-sm) !important;
}

.dt-container .dt-length select,
.dataTables_wrapper .dataTables_length select {
  width: auto;
  min-width: 4rem;
  min-height: 38px;
  padding: 0.45rem 2rem 0.45rem 0.65rem !important;
  background-position: right 0.55rem center;
  border-color: var(--foi-border-strong);
  border-radius: 0.45rem;
  line-height: 1.25;
  text-align: left;
}

.dt-container .dt-paging .dt-paging-button,
.dataTables_wrapper .dataTables_paginate .paginate_button {
  min-width: 36px;
  margin: 0 0.12rem;
  padding: 0.4rem 0.65rem !important;
  border: 0 !important;
  border-radius: 0.45rem !important;
}

.dt-container .dt-paging .dt-paging-button.current,
.dt-container .dt-paging .dt-paging-button.current:hover {
  color: #fff !important;
  background: var(--foi-navy-800) !important;
  border: 0 !important;
}

.badge {
  padding: 0.38em 0.62em;
  border-radius: 0.45rem;
  font-weight: 650;
}

.bg-primary,
.badge-primary {
  background-color: var(--foi-green-600) !important;
}

.alert {
  padding: 0.9rem 1.1rem;
  border: 1px solid transparent;
  border-radius: var(--foi-radius);
  box-shadow: var(--foi-shadow-sm);
}

.alert-primary {
  color: #14533e;
  background: #e6f5ef;
  border-color: #c7e9db;
}

.modal-content {
  overflow: hidden;
  border: 0;
  box-shadow: 0 24px 70px rgba(7, 27, 51, 0.22);
}

.modal-header {
  background: var(--foi-surface-muted);
  border-color: var(--foi-border);
}

#sidebar-wrapper {
  background: var(--foi-surface) !important;
  border-color: var(--foi-border) !important;
  box-shadow: 7px 0 24px rgba(11, 36, 66, 0.06);
}

#sidebar-wrapper .list-group-item {
  margin: 0.18rem 0.6rem;
  padding: 0.72rem 0.85rem;
  color: var(--foi-text-muted);
  background: transparent;
  border: 0;
  border-radius: 0.55rem;
  font-weight: 600;
}

#sidebar-wrapper .list-group-item:hover,
#sidebar-wrapper .list-group-item.active {
  color: var(--foi-green-700);
  background: var(--foi-green-100);
}

.footer {
  position: static;
  padding: 1.65rem clamp(1rem, 3vw, 3rem);
  color: #c7d5e3;
  background: var(--foi-navy-950);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.84rem;
}

.footer a {
  color: #fff !important;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 0.2em;
}

.footer strong {
  color: #fff;
}

.profile-picture {
  max-width: 100%;
  border: 5px solid #fff;
  border-radius: 1rem;
  box-shadow: var(--foi-shadow);
}

.profile-page {
  padding-bottom: 2rem;
}

.profile-page__summary {
  width: 100%;
  margin: 0 auto;
}

.profile-hero--compact {
  min-height: 148px;
  margin-bottom: 1.5rem;
  padding-top: 1.8rem;
  padding-bottom: 1.8rem;
}

.profile-hero--compact h1 {
  font-size: clamp(2rem, 3.5vw, 3rem);
}

.profile-card {
  overflow: hidden;
  background: var(--foi-surface);
  border: 1px solid var(--foi-border);
  border-radius: 1.4rem;
  box-shadow: 0 20px 52px rgba(11, 36, 66, 0.11);
}

.profile-card__main {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.profile-card__avatar-column {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 0.8rem;
}

.profile-card__avatar {
  width: 170px;
  height: 170px;
  padding: 0.35rem;
  background: linear-gradient(145deg, var(--foi-green-100), #eef3f7);
  border-radius: 50%;
}

.profile-card__avatar .profile-picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-width: 4px;
  border-radius: 50%;
}

.profile-card__notice,
.profile-detail__missing {
  display: inline-flex;
  align-items: center;
  color: #8b5a16;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 650;
}

.profile-card__content {
  min-width: 0;
}

.profile-card__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.4rem;
  gap: 1rem;
}

.profile-card__eyebrow {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--foi-green-700);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.profile-card__heading h2 {
  margin: 0;
  color: var(--foi-navy-900);
  font-size: clamp(1.65rem, 2.5vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.profile-card__roles {
  display: flex;
  flex-wrap: wrap;
  margin-top: 0.65rem;
  gap: 0.45rem;
}

.profile-role {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.62rem;
  color: var(--foi-navy-800);
  background: #eef3f7;
  border: 1px solid var(--foi-border);
  border-radius: 999px;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 650;
}

.profile-card__edit {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.4rem;
}

.profile-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.profile-detail {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 66px;
  padding: 0.75rem 0.85rem;
  background: var(--foi-surface-muted);
  border: 1px solid var(--foi-border);
  border-radius: 0.85rem;
  gap: 0.75rem;
}

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

.profile-detail__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  color: var(--foi-green-700);
  background: var(--foi-green-100);
  border-radius: 0.7rem;
}

.profile-detail__label,
.profile-detail__value {
  display: block;
}

.profile-detail__label {
  margin-bottom: 0.12rem;
  color: var(--foi-text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.profile-detail__value {
  overflow: hidden;
  color: var(--foi-text);
  font-size: 0.91rem;
  font-weight: 600;
  text-overflow: ellipsis;
}

a.profile-detail__value:hover {
  color: var(--foi-green-700);
}

.profile-card__meta {
  display: flex;
  align-items: center;
  padding: 0.85rem clamp(1.5rem, 3vw, 2.25rem);
  color: var(--foi-text-muted);
  background: #f6f9fb;
  border-top: 1px solid var(--foi-border);
  gap: clamp(1.5rem, 4vw, 3rem);
  font-size: 0.81rem;
}

.profile-card__meta > div {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.profile-card__meta i {
  color: var(--foi-green-700);
  font-size: 1rem;
}

.profile-card__meta strong {
  display: block;
  margin-bottom: 0.05rem;
  color: var(--foi-text);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}

.profile-documents {
  margin-top: 1.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--foi-border);
}

.profile-documents h3 {
  margin-bottom: 0.8rem;
  color: var(--foi-navy-900);
  font-size: 1rem;
}

.profile-documents__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.profile-document {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  padding: 1rem;
  background: var(--foi-surface-muted);
  border: 1px solid var(--foi-border);
  border-radius: 0.9rem;
  gap: 0.75rem;
}

.profile-document h4 {
  margin: 0;
  color: var(--foi-text);
  font-size: 0.85rem;
}

.profile-document img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--foi-border);
  border-radius: 0.6rem;
}

.profile-archive {
  margin-top: 2rem;
  overflow: hidden;
  background: var(--foi-surface);
  border: 1px solid var(--foi-border);
  border-radius: 1.2rem;
  box-shadow: var(--foi-shadow-sm);
}

.profile-archive__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.35rem;
  border-bottom: 1px solid var(--foi-border);
  gap: 1rem;
}

.profile-archive__title {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.profile-archive__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  color: var(--foi-green-700);
  background: var(--foi-green-100);
  border-radius: 0.8rem;
}

.profile-archive__heading h2 {
  margin: 0;
  color: var(--foi-navy-900);
  font-size: 1.15rem;
}

.profile-archive__heading p {
  margin: 0.2rem 0 0;
  color: var(--foi-text-muted);
  font-size: 0.84rem;
}

.profile-archive__count {
  flex: 0 0 auto;
  padding: 0.38rem 0.7rem;
  color: var(--foi-green-700);
  background: var(--foi-green-100);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 750;
}

.profile-archive__table {
  padding: 1rem 1.2rem 1.2rem;
}

.profile-archive--employee .dtsp-panesContainer {
  margin: 0 0 1rem;
  padding: 1rem !important;
  background: #f7f9fa;
  border-color: var(--foi-border);
  box-shadow: none;
}

.profile-archive--employee .dtsp-titleRow {
  margin-bottom: 0.65rem;
}

.profile-archive--employee .dtsp-searchPanes {
  padding-right: 0;
  padding-left: 0;
  gap: 0.65rem;
}

.profile-archive--employee .dtsp-searchPane {
  min-width: 220px;
  box-shadow: none;
}

.profile-archive--employee .dtsp-searchPane .dt-scroll-body {
  max-height: 210px !important;
}

@media (min-width: 1400px) {
  .profile-archive--employee .table-responsive {
    overflow-x: visible;
  }

  .profile-archive--employee table.dataTable,
  .profile-archive--employee table.myDataTable {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed;
  }

  .profile-archive--employee table.dataTable th,
  .profile-archive--employee table.dataTable td,
  .profile-archive--employee table.myDataTable th,
  .profile-archive--employee table.myDataTable td {
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .profile-archive--employee table th:nth-child(1) {
    width: 7%;
  }

  .profile-archive--employee table th:nth-child(2) {
    width: 16%;
  }

  .profile-archive--employee table th:nth-child(3) {
    width: 15%;
  }

  .profile-archive--employee table th:nth-child(4) {
    width: 9%;
  }

  .profile-archive--employee table th:nth-child(5) {
    width: 11%;
  }

  .profile-archive--employee table th:nth-child(6),
  .profile-archive--employee table th:nth-child(7) {
    width: 9%;
  }

  .profile-archive--employee table th:nth-child(8) {
    width: 14%;
  }

  .profile-archive--employee table th:nth-child(9) {
    width: 10%;
  }

  .profile-archive--employee table td:nth-child(8) > span {
    display: inline-block;
    max-width: 100%;
    line-height: 1.3;
    overflow-wrap: normal;
    white-space: normal !important;
  }

  .profile-archive--employee table th:nth-child(9),
  .profile-archive--employee table td:nth-child(9) {
    padding-left: 1rem;
    overflow-wrap: normal;
  }
}

@media (max-width: 767.98px) {
  .profile-card__main {
    grid-template-columns: 1fr;
  }

  .profile-card__avatar {
    width: 142px;
    height: 142px;
  }

  .profile-card__heading {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-card__edit {
    align-self: flex-start;
  }

  .profile-detail-grid,
  .profile-documents__grid {
    grid-template-columns: 1fr;
  }

  .profile-detail--wide {
    grid-column: auto;
  }

  .profile-card__meta,
  .profile-archive__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-archive__table {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }
}

.page-lead {
  max-width: 52rem;
  margin: 0.4rem 0 0;
  color: var(--foi-text-muted);
  font-size: 1.02rem;
}

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  margin: 2.2rem 0 1rem;
  padding-bottom: 0.7rem;
  color: var(--foi-navy-900);
  border-bottom: 1px solid var(--foi-border);
  font-size: 1.2rem;
  font-weight: 750;
}

.section-heading small {
  color: var(--foi-text-muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.queue-summary {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0.75rem 0 1.5rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(110deg, var(--foi-navy-900), var(--foi-navy-800));
  border-radius: var(--foi-radius-lg);
  box-shadow: var(--foi-shadow);
  color: #fff;
}

.queue-summary__icon {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  font-size: 1.45rem;
}

.queue-summary__count {
  font-size: 2.15rem;
  font-weight: 780;
  line-height: 1;
}

.queue-summary__label {
  display: inline;
  margin: 0 0 0 0.45rem;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 650;
}

.queue-summary__hint {
  margin: 0.35rem 0 0;
  color: #c7d7e7;
  font-size: 0.88rem;
}

.active-application-list {
  padding: 0 !important;
  text-align: left !important;
}

.active-application-card {
  margin-bottom: 0.8rem !important;
  padding: 0.75rem !important;
  background: #fff;
  border: 1px solid var(--foi-border) !important;
  border-radius: var(--foi-radius) !important;
  box-shadow: var(--foi-shadow-sm);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.active-application-card:hover {
  transform: translateY(-2px);
  border-color: #b9c9d7 !important;
  box-shadow: var(--foi-shadow);
}

.active-application-card__status {
  padding: 0.75rem !important;
  text-align: center;
  background: color-mix(in srgb, var(--status-color) 35%, white) !important;
  border-left: 4px solid var(--status-color);
  border-radius: 0.65rem !important;
  font-size: 0.77rem;
}

.active-application-card__title {
  padding: 0.7rem 1rem;
}

.active-application-card__title h4 {
  margin: 0;
  font-size: 1.03rem;
  font-weight: 700;
}

.active-application-card__meta {
  padding: 0.55rem 0.75rem;
  color: var(--foi-text-muted);
  text-align: center;
  font-size: 0.82rem;
}

.active-application-card__meta > i {
  margin-bottom: 0.25rem;
  color: var(--foi-green-600);
  font-size: 1rem;
}

.active-application-card__meta div {
  color: #506174;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.empty-state {
  padding: 2.25rem !important;
  color: var(--foi-text-muted);
  text-align: center !important;
  background: var(--foi-surface-muted) !important;
  border: 1px dashed var(--foi-border-strong) !important;
  border-radius: var(--foi-radius) !important;
}

.empty-state__icon {
  display: block;
  margin-bottom: 0.75rem;
  color: #8ea1b4;
  font-size: 2rem;
}

.empty-state p:first-of-type {
  margin-bottom: 0.3rem;
  color: var(--foi-text);
  font-size: 1.1rem !important;
  font-weight: 700;
}

.workspace-empty-state {
  width: min(100%, 760px);
  margin: clamp(2rem, 5vw, 4rem) auto;
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  flex-direction: column;
  color: var(--foi-text-muted);
  text-align: center;
  background:
    radial-gradient(circle at 50% 0, rgba(230, 245, 239, 0.9), transparent 42%),
    #fff;
  border: 1px solid var(--foi-border);
  border-radius: 1.5rem;
  box-shadow: var(--foi-shadow);
}

.workspace-empty-state__icon {
  width: 4.25rem;
  height: 4.25rem;
  margin-bottom: 1.1rem;
  display: grid;
  place-items: center;
  color: var(--foi-green-700);
  background: var(--foi-green-100);
  border: 1px solid #c9e7da;
  border-radius: 1.25rem;
  font-size: 1.8rem;
  box-shadow: 0 10px 24px rgba(24, 123, 88, 0.1);
}

.workspace-empty-state__eyebrow {
  margin-bottom: 0.45rem;
  color: var(--foi-green-700);
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.workspace-empty-state h2 {
  margin: 0;
  color: var(--foi-navy-900);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 780;
  letter-spacing: -0.025em;
}

.workspace-empty-state p {
  max-width: 27rem;
  margin: 0.65rem 0 1rem;
  line-height: 1.55;
}

.workspace-empty-state__status {
  padding: 0.45rem 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--foi-green-700);
  background: var(--foi-green-100);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0 1.75rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--foi-border);
  border-radius: var(--foi-radius);
  box-shadow: var(--foi-shadow-sm);
}

.catalog-search {
  position: relative;
  min-width: min(100%, 26rem);
  flex: 1 1 26rem;
}

.catalog-search > i {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 0.9rem;
  color: #8191a2;
  transform: translateY(-50%);
}

.catalog-search .form-control {
  width: 100% !important;
  padding-left: 2.55rem;
  text-align: left !important;
}

.catalog-tags {
  display: flex;
  flex: 2 1 32rem;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.catalog-tags .btn {
  margin: 0 !important;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  font-size: 0.79rem;
}

.catalog-tags .btn-secondary {
  color: #fff !important;
  background: var(--foi-navy-800) !important;
  border-color: var(--foi-navy-800) !important;
}

.application {
  margin-bottom: 1.25rem !important;
}

.application .card-footer button.btn-primary {
  color: var(--foi-green-700) !important;
  background: #fff !important;
  border-color: #b9d9cd !important;
}

.employee-workspace h3[style*="border-bottom"] {
  margin: 2rem 0 1rem !important;
  padding: 0 0 0.7rem !important;
  color: var(--foi-navy-900);
  border-bottom: 1px solid var(--foi-border) !important;
  text-align: left !important;
  font-size: 1.15rem;
  font-weight: 750;
}

.employee-workspace .col-md-12[style*="padding: 20px"] {
  padding: 0 !important;
}

.employee-workspace .course[style*="padding: 20px"] {
  padding: 0 !important;
}

.workspace-tabs.nav-tabs.planning-tabs {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 62px;
  margin: 1.25rem 0 1.5rem !important;
  padding: 0 0.35rem;
  gap: 1.8rem;
  overflow: hidden;
  justify-content: flex-start;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--foi-border-strong);
  border-radius: 0;
}

.workspace-tabs.nav-tabs.planning-tabs .nav-item {
  flex: 0 0 auto;
}

.workspace-tabs.nav-tabs.planning-tabs .nav-link {
  position: relative;
  width: auto;
  min-height: 61px;
  padding: 1rem 0.65rem 1.05rem;
  color: var(--foi-text-muted) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none;
  font-size: 1.06rem;
  font-weight: 720;
}

.workspace-tabs.nav-tabs.planning-tabs .nav-link::after {
  position: absolute;
  right: 0.55rem;
  bottom: -1px;
  left: 0.55rem;
  height: 4px;
  background: transparent;
  border-radius: 3px 3px 0 0;
  content: "";
}

.workspace-tabs.nav-tabs.planning-tabs .nav-link:hover,
.workspace-tabs.nav-tabs.planning-tabs .nav-link:focus {
  color: var(--foi-navy-900) !important;
}

.workspace-tabs.nav-tabs.planning-tabs .nav-link.active {
  color: var(--foi-green-700) !important;
  background: linear-gradient(180deg, transparent 15%, rgba(223, 244, 236, 0.72)) !important;
  box-shadow: none;
}

.workspace-tabs.nav-tabs.planning-tabs .nav-link.active::after {
  background: var(--foi-green-600);
}

.workspace-tabs .badge {
  min-width: 1.65rem;
  min-height: 1.65rem;
  margin-left: 0.5rem;
  padding: 0.4em 0.55em;
  font-size: 0.76rem;
  line-height: 1;
}

.employee-workspace .workspace-tabs + .row h3[style*="border-bottom"] {
  margin-top: 0.75rem !important;
}

/* Case details, processing flow and communication */
.case-title h1 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.case-title h1 a::before {
  margin-right: 0.35rem;
  content: "‹";
}

.case-tabs.nav-tabs.planning-tabs {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 1.6rem 0 -1px !important;
  padding: 0.65rem 1rem 0;
  gap: 0.25rem;
  overflow: visible;
  justify-content: flex-start;
  background: var(--foi-surface);
  border: 1px solid var(--foi-border);
  border-bottom: 0;
  border-radius: var(--foi-radius-lg) var(--foi-radius-lg) 0 0;
  box-shadow: 0 -4px 16px rgba(11, 36, 66, 0.035);
}

.case-tabs.nav-tabs.planning-tabs .nav-link {
  position: relative;
  padding: 0.72rem 0.95rem 0.85rem;
  color: var(--foi-text-muted) !important;
  background: transparent !important;
  border-radius: 0.55rem 0.55rem 0 0;
  box-shadow: none;
}

.case-tabs.nav-tabs.planning-tabs .nav-link::after {
  position: absolute;
  right: 0.7rem;
  bottom: -1px;
  left: 0.7rem;
  height: 3px;
  background: transparent;
  border-radius: 3px 3px 0 0;
  content: "";
}

.case-tabs.nav-tabs.planning-tabs .nav-link:hover,
.case-tabs.nav-tabs.planning-tabs .nav-link:focus {
  color: var(--foi-navy-900) !important;
  background: #f4f7fa !important;
}

.case-tabs.nav-tabs.planning-tabs .nav-link.active {
  color: var(--foi-navy-900) !important;
  background: transparent !important;
}

.case-tabs.nav-tabs.planning-tabs .nav-link.active::after {
  background: var(--foi-green-600);
}

.case-tabs .badge {
  min-width: 1.4rem;
  padding: 0.3em 0.5em;
  font-size: 0.72rem;
}

.case-tabs + .row {
  margin-right: 0;
  margin-left: 0;
}

.case-tabs + .row > .case-sheet {
  width: 100%;
  margin-right: 0;
  margin-left: 0;
  flex: 0 0 auto;
}

.case-tabs + .row .case-sheet {
  margin-top: 0 !important;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  box-shadow: var(--foi-shadow);
}

@media (min-width: 1200px) {
  .case-title,
  .case-tabs.nav-tabs.planning-tabs {
    width: 83.333333%;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  .case-tabs + .row > .case-sheet {
    width: 83.333333%;
    margin-right: auto;
    margin-left: auto;
  }
}

.case-detail-page {
  margin-right: 0;
  margin-left: 0;
}

.case-sheet {
  padding: clamp(1.1rem, 2.5vw, 2rem);
}

.application-routing-summary.is-embedded {
  margin-top: 1.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--foi-border);
}

.application-routing-summary:not(.is-embedded) {
  margin-bottom: 1.25rem;
}

.application-routing-summary__inner {
  min-width: 0;
}

.application-routing-summary:not(.is-embedded) .application-routing-summary__inner {
  margin-bottom: 1.25rem;
}

.application-routing-summary__payment {
  margin-bottom: 0.75rem;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--foi-text);
  background: #f3f8f5;
  border: 1px solid #dbe9df;
  border-radius: 0.85rem;
}

.application-routing-summary__payment > i {
  margin-top: 0.15rem;
  color: var(--foi-green-600);
}

.application-routing-summary__payment strong,
.application-routing-summary__payment span {
  display: block;
}

.application-routing-summary__payment strong {
  font-size: 1.05rem;
}

.application-routing-summary__payment span {
  margin-top: 0.15rem;
  color: var(--foi-text-muted);
  font-size: 0.86rem;
}

.application-routing-summary__process {
  padding: 1rem 1.1rem;
  background: #f5f7f8;
  border: 1px solid var(--foi-border);
  border-radius: 1rem;
}

.application-routing-summary__process h2 {
  margin: 0 0 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--foi-navy-900);
  font-size: 0.9rem;
  font-weight: 760;
  letter-spacing: 0.01em;
}

.application-routing-summary__process h2 i {
  color: var(--foi-green-600);
}

.application-routing-summary__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.application-routing-summary__step {
  min-width: 0;
  padding: 0.8rem 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  background: #fff;
  border: 1px solid #e2e8eb;
  border-radius: 0.8rem;
}

.application-routing-summary__icon {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--foi-green-700);
  background: var(--foi-green-100);
  border-radius: 0.6rem;
}

.application-routing-summary__step > div {
  min-width: 0;
}

.application-routing-summary__step span:not(.application-routing-summary__icon),
.application-routing-summary__step strong {
  display: block;
}

.application-routing-summary__step span:not(.application-routing-summary__icon) {
  margin-bottom: 0.15rem;
  color: var(--foi-text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.application-routing-summary__step strong {
  color: var(--foi-navy-900);
  font-size: 0.9rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.application-info-modal__dialog {
  width: min(720px, calc(100% - 2rem));
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
}

.application-info-modal__content {
  overflow: hidden;
  border: 1px solid rgba(19, 45, 63, 0.12);
  border-radius: 1.15rem;
  box-shadow: 0 28px 80px rgba(7, 27, 51, 0.28);
}

.application-info-modal__header {
  padding: 1.15rem 1.25rem;
  color: #fff;
  background: linear-gradient(125deg, #183447, #255a70);
  border: 0;
}

.application-info-modal__heading {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.application-info-modal__heading-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
}

.application-info-modal__eyebrow {
  display: block;
  margin-bottom: 0.15rem;
  color: #bfe4eb;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.application-info-modal__header .modal-title {
  color: #fff;
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  font-weight: 750;
  line-height: 1.3;
}

.application-info-modal__header .btn-close {
  flex: 0 0 auto;
  margin-left: 1rem;
  opacity: 0.8;
}

.application-info-modal__header .btn-close:hover,
.application-info-modal__header .btn-close:focus {
  opacity: 1;
}

.application-info-modal__body {
  padding: 1.25rem;
  display: grid;
  gap: 0.85rem;
  background: #f6f8f9;
}

.application-info-modal__section {
  padding: 1rem;
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 0.85rem;
  color: var(--foi-text);
  background: #fff;
  border: 1px solid #e0e7ea;
  border-radius: 0.9rem;
}

.application-info-modal__section-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0b7285;
  background: #e8f5f7;
  border-radius: 0.65rem;
}

.application-info-modal__section h3 {
  margin: 0 0 0.35rem;
  color: var(--foi-navy-900);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.application-info-modal__section p,
.application-info-modal__rich-text,
.application-info-modal__rich-text > :last-child {
  margin-bottom: 0;
}

.application-info-modal__rich-text ul,
.application-info-modal__rich-text ol {
  margin: 0.45rem 0 0;
  padding-left: 1.2rem;
}

.application-info-modal__rich-text li + li {
  margin-top: 0.3rem;
}

.application-info-modal__links,
.application-info-modal__fields {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  list-style: none;
}

.application-info-modal__links a,
.application-info-modal__fields li {
  min-width: 0;
  padding: 0.55rem 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: #f7fafb;
  border: 1px solid #e3eaed;
  border-radius: 0.6rem;
}

.application-info-modal__links a span {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}

.application-info-modal__section--contact {
  background: #f0f8f5;
  border-color: #d4e8df;
}

.application-info-modal__section--contact strong,
.application-info-modal__section--contact a {
  display: block;
}

.application-info-modal__section--contact a {
  width: fit-content;
  margin-top: 0.25rem;
  overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
  .application-info-modal__dialog {
    width: calc(100% - 1rem);
  }

  .application-info-modal__header,
  .application-info-modal__body {
    padding: 1rem;
  }

  .application-info-modal__heading-icon {
    display: none;
  }

  .application-info-modal__section {
    grid-template-columns: 1fr;
  }
}

.case-toolbar {
  align-items: center;
  margin: -0.25rem 0 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--foi-border);
}

.case-draft-notice {
  margin-bottom: 1.15rem;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: #fff8ed;
  border: 1px solid #f2d7ad;
  border-left: 4px solid #d38b25;
  border-radius: 0.9rem;
}

.case-draft-notice.is-incomplete {
  background: #fff3f4;
  border-color: #efc6cb;
  border-left-color: var(--foi-danger);
}

.case-draft-notice__icon {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #9b5f0d;
  background: #ffebca;
  border-radius: 0.75rem;
  font-size: 1.15rem;
}

.case-draft-notice.is-incomplete .case-draft-notice__icon {
  color: #b42335;
  background: #ffe1e5;
}

.case-draft-notice__content {
  min-width: 0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.15rem;
}

.case-draft-notice__content strong {
  color: var(--foi-navy-900);
  font-size: 0.95rem;
}

.case-draft-notice__content span {
  color: var(--foi-text-muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.case-draft-notice__badge {
  padding: 0.42rem 0.68rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  color: #85510a;
  background: #ffebca;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 720;
  white-space: nowrap;
}

.case-draft-notice.is-incomplete .case-draft-notice__badge {
  color: #a61e30;
  background: #ffe1e5;
}

@media (max-width: 575.98px) {
  .case-draft-notice {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .case-draft-notice__badge {
    margin-left: 3.45rem;
  }
}

.case-toolbar > div:last-child {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.case-toolbar .btn {
  margin: 0 !important;
}

.case-overview {
  display: grid;
  grid-template-columns: minmax(12rem, 0.8fr) minmax(0, 2.4fr);
  gap: 1rem;
  margin: 0.5rem 0 1.5rem;
  padding: 1rem;
  background: #f7fafc;
  border: 1px solid var(--foi-border);
  border-radius: var(--foi-radius);
}

.case-overview__status {
  display: flex;
  min-height: 106px;
  padding: 1rem;
  justify-content: center;
  flex-direction: column;
  background: color-mix(in srgb, var(--status-color) 27%, white);
  border-left: 5px solid var(--status-color);
  border-radius: 0.72rem;
}

.case-overview__eyebrow,
.case-meta-item__label {
  display: block;
  margin-bottom: 0.35rem;
  color: #5a6b7e;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.case-overview__status-value {
  color: var(--foi-navy-900);
  font-size: 1.05rem;
  line-height: 1.35;
}

.case-overview__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  align-content: stretch;
}

.case-meta-item {
  display: flex;
  min-width: 0;
  padding: 0.8rem 1rem;
  justify-content: center;
  flex-direction: column;
  border-right: 1px solid var(--foi-border);
}

.case-meta-item:last-child {
  border-right: 0;
}

.case-meta-item strong {
  overflow-wrap: anywhere;
  color: var(--foi-text);
  font-size: 0.9rem;
}

.case-meta-item__action {
  display: inline-grid;
  width: 28px;
  height: 28px;
  margin-left: 0.35rem;
  place-items: center;
  color: var(--foi-danger);
  background: #fff;
  border-radius: 50%;
}

.content-section-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 1.8rem 0 0.8rem;
  padding: 0.7rem 0;
  color: var(--foi-navy-900);
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--foi-border) !important;
  text-align: left !important;
  font-size: 1.02rem;
  font-weight: 750;
}

.content-section-title > i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--foi-green-700);
  background: var(--foi-green-100);
  border-radius: 0.55rem;
}

.edit-frame > div[style*="background-color: #3e6fb7"],
.case-sheet > section > div[style*="background-color: #3e6fb7"] {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.8rem 0 0.8rem !important;
  padding: 0.7rem 0 !important;
  color: var(--foi-navy-900) !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--foi-border) !important;
  text-align: left !important;
  font-weight: 750;
}

.case-data-table-wrap {
  overflow: hidden;
  border: 1px solid var(--foi-border);
  border-radius: var(--foi-radius);
}

.case-data-table-wrap .case-data-table {
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none;
}

.case-data-table > tbody > tr > td:first-child {
  width: 30%;
  min-width: 180px;
  color: #526579;
  background: #f7f9fb;
  font-size: 0.83rem;
  font-weight: 700 !important;
}

.case-data-table > tbody > tr > td:last-child {
  overflow-wrap: anywhere;
}

.person-summary {
  margin: 0 0 1.25rem !important;
  padding: 0.75rem 0.5rem !important;
  background: linear-gradient(120deg, #f2f6f9, #fbfcfd) !important;
  border: 1px solid var(--foi-border);
  border-radius: var(--foi-radius) !important;
}

.person-summary .fill {
  width: 72px;
  height: 72px;
  margin: 0 auto;
}

.person-summary .profile-picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-width: 3px;
  border-radius: 50%;
}

.person-summary h4 {
  margin-bottom: 0.4rem;
  color: var(--foi-navy-900);
  font-weight: 750;
}

.person-summary__actions {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 0.4rem;
}

.person-summary__actions .btn {
  width: 100%;
  margin-top: 0 !important;
  white-space: normal;
}

.person-summary__actions .dropdown {
  width: 100%;
}

.person-summary__actions .dropdown-menu {
  min-width: 15rem;
  padding: 0.4rem;
  border-color: var(--foi-border);
  border-radius: 0.8rem;
  box-shadow: var(--foi-shadow);
}

.person-summary__actions .dropdown-item {
  padding: 0.6rem 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: 0.55rem;
  font-size: 0.86rem;
}

.person-summary__actions .dropdown-item i {
  width: 1rem;
  color: var(--foi-green-700);
  text-align: center;
}

.process-timeline {
  position: relative;
  display: grid;
  margin: 0 0 1.5rem 0.35rem;
  padding-left: 2rem;
  gap: 0.7rem;
}

.process-timeline::before {
  position: absolute;
  top: 1rem;
  bottom: 1rem;
  left: 0.76rem;
  width: 2px;
  background: linear-gradient(180deg, var(--foi-action-primary), #d8e3e8 20%, #d8e3e8 90%, transparent);
  content: "";
}

.process-timeline__item {
  position: relative;
}

.process-timeline__marker {
  position: absolute;
  z-index: 1;
  top: 1rem;
  left: -2rem;
  display: grid;
  width: 1.55rem;
  height: 1.55rem;
  place-items: center;
  color: var(--foi-action-primary);
  background: #fff;
  border: 2px solid #9fcbd4;
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--foi-surface);
  font-size: 0.58rem;
}

.process-timeline__item.is-latest .process-timeline__marker {
  color: #fff;
  background: var(--foi-action-primary);
  border-color: var(--foi-action-primary);
}

.process-timeline__card {
  padding: 0.9rem 1rem 0.95rem;
  background: #fff;
  border: 1px solid var(--foi-border);
  border-radius: 0.85rem;
  box-shadow: 0 2px 8px rgba(11, 36, 66, 0.035);
}

.process-timeline__item.is-latest .process-timeline__card {
  border-color: #a9ced6;
  box-shadow: 0 7px 22px rgba(22, 117, 138, 0.09);
}

.process-timeline__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.process-timeline__event {
  display: grid;
  min-width: 0;
  gap: 0.22rem;
}

.process-timeline__event > strong {
  color: var(--foi-navy-900);
  font-size: 0.92rem;
  font-weight: 750;
}

.process-timeline__person {
  display: inline-flex;
  align-items: center;
  color: var(--foi-text-muted);
  gap: 0.3rem;
  font-size: 0.73rem;
}

.process-timeline__meta {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.5rem;
}

.process-timeline__meta time {
  display: grid;
  min-width: 5.8rem;
  padding: 0.38rem 0.55rem;
  color: var(--foi-text-muted);
  background: #f0f5f7;
  border-radius: 0.55rem;
  font-size: 0.67rem;
  line-height: 1.25;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.process-timeline__meta time strong {
  color: var(--foi-navy-900);
  font-size: 0.7rem;
}

.process-timeline__comment {
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  color: #405064;
  background: #f8fafb;
  border: 1px solid #e6ecef;
  border-radius: 0.6rem;
  font-size: 0.8rem;
  line-height: 1.5;
}

.process-timeline__comment-label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--foi-text-muted);
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.process-overview-title small {
  margin-left: auto;
  color: var(--foi-text-muted);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0;
}

.case-actions {
  margin: 1.5rem 0;
  padding: 0.25rem 1rem 1rem;
  background: #f8fafc;
  border: 1px solid var(--foi-border);
  border-radius: var(--foi-radius);
  text-align: left;
}

.case-actions .content-section-title {
  margin-top: 0;
}

.case-actions__buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.case-actions__buttons > .btn,
.case-actions__buttons > .btn-group {
  margin: 0 !important;
}

.processing-note {
  min-width: 0;
  margin: 0.55rem 0;
  padding: 0.9rem 1rem;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid var(--foi-border);
  border-left: 4px solid #8da7bd;
  border-radius: 0.65rem;
}

.processing-note__content {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.processing-note__content > :last-child {
  margin-bottom: 0;
}

.processing-note__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  color: var(--foi-text-muted);
  border-top: 1px solid var(--foi-border);
  gap: 0.45rem 1rem;
  font-size: 0.75rem;
}

.processing-note__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.message-card {
  margin-top: 0.75rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--foi-border);
  border-radius: var(--foi-radius);
  box-shadow: var(--foi-shadow-sm);
}

.message-card--private {
  border-left: 4px solid var(--foi-warning);
}

.message-card__body {
  padding: 1rem !important;
}

.message-card__meta {
  padding: 0.65rem 0.4rem;
  color: var(--foi-text-muted);
  background: #f8fafc;
  border-top: 1px solid var(--foi-border);
  font-size: 0.78rem;
}

.message-card__meta > div {
  text-align: left !important;
}

.message-card__meta > div > div {
  font-size: inherit !important;
}

.comment-composer {
  margin-top: 1.25rem;
  background: #f8fafc;
  box-shadow: none;
}

.comment-composer__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  color: var(--foi-navy-900);
}

.comment-composer__title h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 750;
}

.mail-event {
  align-items: stretch;
  margin-bottom: 0.7rem !important;
}

.mail-event__date {
  height: 100%;
  padding: 0.75rem 0.5rem;
  color: var(--foi-navy-900);
  background: #edf3f7;
  border-radius: 0.65rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 750;
}

.mail-event__date small {
  color: var(--foi-text-muted);
  font-weight: 600;
}

.mail-event__content {
  overflow: hidden;
  border: 1px solid var(--foi-border) !important;
  border-radius: 0.65rem !important;
}

.processing-timeline {
  position: relative;
  display: grid;
  margin: 0.25rem 0 1rem;
  gap: 0.85rem;
}

.processing-timeline::before {
  position: absolute;
  top: 1.4rem;
  bottom: 1.4rem;
  left: 10.75rem;
  width: 2px;
  content: "";
  background: linear-gradient(180deg, var(--foi-action-primary), #d9e3e8 18%, #d9e3e8 88%, transparent);
}

.processing-timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 9rem 2rem minmax(0, 1fr);
  align-items: start;
  column-gap: 0.75rem;
}

.processing-timeline__date {
  display: grid;
  min-height: 3.6rem;
  align-content: center;
  padding: 0.6rem 0.8rem;
  color: var(--foi-navy-900);
  background: #f0f5f7;
  border: 1px solid #e3eaee;
  border-radius: 0.75rem;
  text-align: right;
}

.processing-timeline__date strong {
  font-size: 0.83rem;
  font-variant-numeric: tabular-nums;
}

.processing-timeline__date span {
  margin-top: 0.12rem;
  color: var(--foi-text-muted);
  font-size: 0.71rem;
  font-variant-numeric: tabular-nums;
}

.processing-timeline__marker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  margin-top: 0.8rem;
  align-items: center;
  justify-content: center;
  color: var(--foi-action-primary);
  background: #fff;
  border: 2px solid #9fcbd4;
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--foi-canvas);
  font-size: 0.72rem;
}

.processing-timeline__item.is-message .processing-timeline__marker {
  color: var(--foi-green-700);
  border-color: #9bcdbb;
}

.processing-timeline__item.is-latest .processing-timeline__marker {
  color: #fff;
  background: var(--foi-action-primary);
  border-color: var(--foi-action-primary);
}

.processing-event {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--foi-border) !important;
  border-radius: 0.85rem !important;
  box-shadow: 0 2px 8px rgba(11, 36, 66, 0.035);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.processing-event:hover,
.processing-event:focus-within {
  border-color: #b6cbd5 !important;
  box-shadow: 0 8px 20px rgba(11, 36, 66, 0.07);
}

.processing-timeline__item.is-latest .processing-event {
  border-color: #a9ced6 !important;
  box-shadow: 0 7px 22px rgba(22, 117, 138, 0.1);
}

.processing-event__toggle {
  min-height: 3.6rem;
  padding: 0.85rem 1rem;
  color: var(--foi-text);
  background: #fff;
  gap: 0.8rem;
}

.processing-event .processing-event__toggle:not(.collapsed) {
  color: var(--foi-navy-900);
  background: #f8fbfc;
  box-shadow: inset 0 -1px 0 var(--foi-border);
}

.processing-event__heading {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.processing-event__title {
  overflow: hidden;
  color: var(--foi-navy-900);
  font-size: 0.94rem;
  font-weight: 720;
  text-overflow: ellipsis;
}

.processing-event__meta {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  color: var(--foi-text-muted);
  gap: 0.45rem;
  font-size: 0.7rem;
}

.processing-event__meta > span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.processing-event__type,
.processing-event__latest {
  padding: 0.28rem 0.5rem;
  background: #edf3f5;
  border-radius: 999px;
  font-weight: 700;
}

.is-message .processing-event__type {
  color: var(--foi-green-700);
  background: var(--foi-green-100);
}

.processing-event__latest {
  color: var(--foi-action-primary);
  background: var(--foi-action-primary-soft);
}

.processing-event__body {
  display: grid;
  padding: 1rem 1.1rem 1.1rem;
  background: #fbfcfd;
  gap: 0.9rem;
}

.processing-event__person {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.processing-event__person-icon {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 2.25rem;
  align-items: center;
  justify-content: center;
  color: var(--foi-action-primary);
  background: var(--foi-action-primary-soft);
  border-radius: 0.7rem;
}

.processing-event__person > div {
  display: grid;
  line-height: 1.35;
}

.processing-event__person > div > span,
.processing-event__label {
  color: var(--foi-text-muted);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.processing-event__person strong {
  color: var(--foi-navy-900);
  font-size: 0.86rem;
}

.processing-event__person a {
  font-size: 0.76rem;
}

.processing-event__message {
  padding: 0.85rem 0.95rem;
  color: #334356;
  background: #fff;
  border: 1px solid var(--foi-border);
  border-radius: 0.7rem;
  font-size: 0.86rem;
  line-height: 1.55;
}

.processing-event__message p:last-child {
  margin-bottom: 0;
}

.processing-event__label {
  display: block;
  margin-bottom: 0.35rem;
}

.processing-event__attachment {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 0.5rem 0.7rem;
  color: var(--foi-action-primary);
  background: var(--foi-action-primary-soft);
  border-radius: 0.55rem;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.processing-event__attachment:hover,
.processing-event__attachment:focus {
  color: #fff;
  background: var(--foi-action-primary);
}

@media (max-width: 767.98px) {
  .processing-timeline {
    gap: 1rem;
  }

  .processing-timeline::before {
    left: 0.95rem;
  }

  .processing-timeline__item {
    grid-template-columns: 1.9rem minmax(0, 1fr);
    column-gap: 0.65rem;
  }

  .processing-timeline__date {
    grid-column: 2;
    width: fit-content;
    min-height: 0;
    margin-bottom: 0.35rem;
    padding: 0;
    display: flex;
    color: var(--foi-text-muted);
    background: transparent;
    border: 0;
    gap: 0.45rem;
    text-align: left;
  }

  .processing-timeline__date strong,
  .processing-timeline__date span {
    margin: 0;
    font-size: 0.73rem;
  }

  .processing-timeline__marker {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 1.9rem;
    height: 1.9rem;
    margin-top: 0;
  }

  .processing-event {
    grid-column: 2;
  }

  .processing-event__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }

  .processing-event__title {
    white-space: normal;
  }

  .processing-event__meta {
    flex-wrap: wrap;
  }
}

.accordion-button {
  color: var(--foi-text);
  background: #fff;
  font-weight: 650;
}

.accordion-button:not(.collapsed) {
  color: var(--foi-green-700);
  background: #f0f8f5;
  box-shadow: inset 0 -1px 0 var(--foi-border);
}

.accordion-button:focus {
  border-color: var(--foi-green-500);
  box-shadow: var(--foi-focus);
}

/* Creation and edit forms */
.form-page-title {
  width: 100%;
  max-width: none;
  margin-right: auto;
  margin-left: auto;
}

.form-page-title--aligned {
  width: 100%;
  max-width: none;
}

.form-page-title--md-form,
.form-page-title--lg-form {
  width: 100%;
  max-width: none;
}

/* Match the title width to the Bootstrap column used by the form below it. */
@media (min-width: 768px) {
  .form-page-title--md-form {
    width: calc(66.666667% - 0.5rem);
  }
}

@media (min-width: 992px) {
  .form-page-title--lg-form {
    width: calc(66.666667% - 0.5rem);
  }
}

.form-card {
  overflow: visible;
}

.form-card form,
.comment-composer form {
  margin-top: 0.5rem;
}

.form-card .form-group,
.form-card form > div > div,
.comment-composer .form-group {
  margin-bottom: 0.2rem;
}

.form-card .form-group.row,
.edit-frame form .form-group.row,
.comment-composer .form-group.row {
  align-items: flex-start;
  margin-right: 0;
  margin-left: 0;
  padding: 0.8rem 0;
  border-bottom: 1px solid #edf1f4;
}

.form-card .form-group.row:last-of-type,
.edit-frame form .form-group.row:last-of-type,
.comment-composer .form-group.row:last-of-type {
  border-bottom: 0;
}

.form-card .form-text,
.form-card .help-text,
.form-card small {
  display: block;
  margin-top: 0.35rem;
  color: var(--foi-text-muted);
  font-size: 0.78rem;
}

.form-card .form-check,
.comment-composer .form-check {
  min-height: 1.5rem;
  margin-bottom: 0.45rem;
  padding-left: 1.8rem;
}

.form-check-input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.18rem;
  border-color: #aebdca;
}

.form-check-input:checked {
  background-color: var(--foi-green-600);
  border-color: var(--foi-green-600);
}

.form-control[type="file"] {
  padding: 0.35rem;
}

.form-control[type="file"]::file-selector-button {
  margin: -0.35rem 0.8rem -0.35rem -0.35rem;
  padding: 0.7rem 0.85rem;
  color: var(--foi-navy-900);
  background: #e8eef3;
  border: 0;
  border-right: 1px solid var(--foi-border-strong);
  font-weight: 650;
}

.form-control.is-invalid,
.was-validated .form-control:invalid {
  border-color: var(--foi-danger);
  background-color: #fffafa;
}

.invalid-feedback,
.form-error-message {
  color: #a72f3b;
  font-size: 0.8rem;
  font-weight: 600;
}

.select2-container {
  width: 100% !important;
}

.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  margin: 0.2rem;
  padding: 0.25rem 0.45rem;
  color: #235844;
  background: var(--foi-green-100);
  border-color: #b7ddcf;
  border-radius: 0.4rem;
}

.form-confirmation {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  color: #415267;
  background: #f7fafc;
  border: 1px solid var(--foi-border);
  border-radius: 0.65rem;
  font-weight: 600;
}

.form-confirmation input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  accent-color: var(--foi-green-600);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--foi-border);
}

.form-help {
  margin-top: 1rem !important;
  padding: 0.8rem 0.9rem !important;
  color: var(--foi-text-muted);
  background: #f5f8fa;
  border: 0 !important;
  border-radius: 0.6rem;
  font-size: 0.82rem;
}

.btn-outline-primary {
  color: var(--foi-green-700);
  border-color: #91c9b5;
}

.btn-outline-primary:hover {
  color: #fff;
  background: var(--foi-green-600);
  border-color: var(--foi-green-600);
}

.case-sheet .row.align-items-center[style*="background-color: #EEEEEE"] {
  margin-right: 0;
  margin-left: 0;
  padding: 1rem !important;
  background: #f7fafc !important;
  border: 1px solid var(--foi-border);
  border-radius: var(--foi-radius) !important;
}

@media (max-width: 991.98px) {
  .app-topbar {
    padding-right: 0.8rem;
    padding-left: 0.8rem;
  }

  .app-topbar .navbar-nav {
    gap: 0;
  }

  .app-topbar .navbar-nav .nav-link {
    padding: 0.65rem;
  }

  .edit-frame,
  .col-md-8.offset-md-2.edit-frame {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 767.98px) {
  body.app-shell {
    padding-top: 68px;
  }

  .app-topbar {
    min-height: 68px;
  }

  .app-brand {
    min-width: 4.25rem;
    margin-right: 0;
  }

  .app-brand__logo {
    width: 76px;
    height: 54px;
  }

  .app-page-content {
    padding-top: 1.4rem;
    padding-bottom: 2.5rem;
  }

  .course-title {
    margin-bottom: 1rem;
  }

  .nav-tabs.planning-tabs {
    width: 100%;
  }

  .nav-tabs.planning-tabs .nav-item {
    flex: 1 0 auto;
  }

  .nav-tabs.planning-tabs .nav-link {
    width: 100%;
    text-align: center;
  }

  .workspace-tabs.nav-tabs.planning-tabs {
    gap: 1.25rem;
  }

  .workspace-tabs.nav-tabs.planning-tabs .nav-item {
    flex: 0 0 auto;
  }

  .workspace-tabs.nav-tabs.planning-tabs .nav-link {
    width: auto;
    text-align: left;
  }

  .edit-frame {
    padding: 1rem;
    border-radius: var(--foi-radius);
  }

  .footer {
    text-align: center;
  }

  .footer .col-lg-3,
  .footer .col-lg-6 {
    margin-bottom: 0.8rem;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.15rem;
  }

  .queue-summary {
    align-items: flex-start;
    padding: 1rem;
  }

  .queue-summary__label {
    display: block;
    margin: 0.35rem 0 0;
  }

  .active-application-card__status {
    margin-bottom: 0.3rem;
  }

  .active-application-card__meta {
    text-align: left;
  }

  .catalog-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-search,
  .catalog-tags {
    min-width: 0;
    flex-basis: auto;
  }

  .case-overview {
    grid-template-columns: 1fr;
  }

  .case-overview__meta {
    grid-template-columns: 1fr 1fr;
  }

  .case-meta-item {
    border-right: 0;
    border-bottom: 1px solid var(--foi-border);
  }

  .case-toolbar > div {
    width: 100%;
    text-align: left !important;
  }

  .case-toolbar > div:last-child {
    margin-top: 0.65rem;
    justify-content: flex-start;
  }

  .person-summary > div {
    margin-bottom: 0.8rem;
  }

  .process-timeline__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
  }

  .process-timeline__meta {
    width: 100%;
    justify-content: space-between;
  }

  .process-timeline__meta time {
    text-align: left;
  }

  .process-overview-title small {
    width: 100%;
    margin-left: 3.5rem;
  }

  .case-data-table > tbody > tr > td:first-child {
    min-width: 135px;
  }

  .message-card__meta > div {
    margin-bottom: 0.3rem;
  }

  .mail-event__date {
    margin-bottom: 0.45rem;
    text-align: left;
  }

  .form-actions,
  .case-actions__buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .form-actions .btn,
  .case-actions__buttons > .btn,
  .case-actions__buttons > .btn-group,
  .case-actions__buttons > .btn-group > .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* --------------------------------------------------------------------------
   Refined FOI visual direction
   White navigation, editorial dark heroes and warm red brand accents.
   -------------------------------------------------------------------------- */

:root {
  --foi-green-700: #aa2034;
  --foi-green-600: #c9283e;
  --foi-green-500: #df4356;
  --foi-green-100: #fdebed;
  --foi-canvas: #eaf1f3;
  --foi-surface-muted: #f5f7f8;
  --foi-border: #dfe6e9;
  --foi-border-strong: #ced9de;
  --foi-text: #1d2935;
  --foi-text-muted: #667583;
  --foi-radius: 1rem;
  --foi-radius-lg: 1.55rem;
  --foi-shadow-sm: 0 5px 18px rgba(23, 39, 53, 0.055);
  --foi-shadow: 0 20px 50px rgba(23, 39, 53, 0.105);
  --foi-focus: 0 0 0 0.22rem rgba(201, 40, 62, 0.17);
}

body.app-shell {
  background: var(--foi-canvas);
}

/* Keep the landing-page footer at the bottom on taller screens without
   overlaying the page when the responsive content needs to scroll. */
body.app-shell:has(.home-landing) {
  display: flex;
  flex-direction: column;
}

body.app-shell:has(.home-landing) > .page-container {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
}

body.app-shell:has(.home-landing) > .footer {
  flex: 0 0 auto;
}

body.app-shell::before {
  height: 330px;
  background: linear-gradient(180deg, rgba(218, 229, 233, 0.85), rgba(234, 241, 243, 0));
}

.app-topbar {
  min-height: 76px;
  color: var(--foi-text);
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid #1e2933;
  border-bottom: 1px solid #e2e7e9;
  box-shadow: 0 5px 20px rgba(22, 35, 46, 0.055);
  backdrop-filter: blur(14px);
}

.app-brand__logo {
  mix-blend-mode: normal;
}

.app-topbar .navbar-nav .nav-link {
  color: #63707d !important;
  border: 1px solid transparent;
  font-weight: 680;
}

.app-topbar .navbar-nav .nav-link:hover,
.app-topbar .navbar-nav .nav-link:focus {
  color: var(--foi-green-600) !important;
  background: transparent;
  box-shadow: none;
}

.app-topbar .navbar-nav .nav-link[aria-current="page"] {
  color: #fff !important;
  background: #17232e;
  border-color: #17232e;
  box-shadow: 0 8px 22px rgba(23, 35, 46, 0.18);
}

.app-topbar .navbar-nav .nav-link[aria-current="page"] i {
  color: #ff8f9d;
}

.app-topbar .navbar-toggler {
  border-color: var(--foi-border-strong);
}

.app-topbar .left-menu-toggle {
  color: #17232e;
}

.app-topbar .left-menu-toggle:hover,
.app-topbar .left-menu-toggle:focus {
  color: var(--foi-green-600);
}

.app-page-content {
  width: min(100%, 1800px);
  padding-top: clamp(1.5rem, 2.5vw, 2.6rem);
}

@media (min-width: 1200px) {
  .app-page-content.wide-table-layout {
    width: 100%;
    max-width: none;
    padding-right: clamp(1rem, 1.5vw, 2rem);
    padding-left: clamp(1rem, 1.5vw, 2rem);
  }

  .app-page-content.wide-table-layout > .container,
  .app-page-content.wide-table-layout > .container-lg,
  .app-page-content.wide-table-layout > .container-xl,
  .app-page-content.wide-table-layout > .container-xxl,
  .app-page-content.wide-table-layout > .container-fluid {
    width: 100%;
    max-width: none !important;
  }
}

.case-title,
.workspace-title,
.profile-hero,
.employee-workspace .course-title,
.student-dashboard .course-title,
.application-catalog .course-title,
.form-page-title {
  position: relative;
  min-height: 176px;
  margin-bottom: 1.25rem;
  padding: clamp(2rem, 4vw, 3.2rem) clamp(1.5rem, 4vw, 3.5rem);
  overflow: hidden;
  display: flex;
  justify-content: center;
  flex-direction: column;
  color: #fff;
  background:
    radial-gradient(circle at 92% 115%, transparent 0 86px, rgba(255, 255, 255, 0.055) 87px 88px, transparent 89px 144px, rgba(255, 255, 255, 0.04) 145px 146px, transparent 147px),
    linear-gradient(112deg, #172531 0%, #1d2b37 62%, #5c3240 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.75rem;
  box-shadow: 0 22px 54px rgba(23, 37, 49, 0.18);
}

.case-title::before,
.workspace-title::before,
.profile-hero::before,
.employee-workspace .course-title::before,
.student-dashboard .course-title::before,
.application-catalog .course-title::before,
.form-page-title::before {
  margin-bottom: 0.55rem;
  color: #ff91a0;
  content: "FOI • DIGITALNI OBRASCI";
  font-size: 0.75rem;
  font-weight: 780;
  letter-spacing: 0.12em;
}

.case-title h1,
.workspace-title h1,
.profile-hero h1,
.employee-workspace .course-title h1,
.student-dashboard .course-title h1,
.application-catalog .course-title h1,
.form-page-title h1 {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: clamp(2.1rem, 4.2vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.case-title h1 a {
  color: #c7d1d9;
}

.case-title .page-lead,
.workspace-title .page-lead,
.employee-workspace .course-title .page-lead,
.student-dashboard .course-title .page-lead,
.application-catalog .course-title .page-lead,
.form-page-title .page-lead {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  margin-top: 0.65rem;
  color: #c9d3db;
  font-size: 1.03rem;
}

.form-page-title__lead {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.form-page-title__mode {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.58rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  gap: 0.38rem;
  font-size: 0.76rem;
  font-weight: 720;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.workspace-tabs.nav-tabs.planning-tabs {
  min-height: 68px;
  margin-top: 0 !important;
  padding: 0 1.25rem;
  gap: 2.1rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--foi-border);
  border-radius: 1rem;
  box-shadow: var(--foi-shadow-sm);
}

.workspace-tabs.nav-tabs.planning-tabs .nav-link {
  min-height: 67px;
  padding-top: 1.1rem;
  font-size: 1.08rem;
}

.workspace-tabs.nav-tabs.planning-tabs .nav-link.active {
  background: linear-gradient(180deg, transparent 5%, var(--foi-green-100)) !important;
}

.workspace-tabs.nav-tabs.planning-tabs .nav-link.active::after {
  background: var(--foi-green-600);
}

.case-tabs.nav-tabs.planning-tabs {
  margin-top: 1rem !important;
  padding: 0.8rem 1.3rem 0;
  background: rgba(255, 255, 255, 0.97);
  border-color: var(--foi-border);
  box-shadow: 0 -8px 28px rgba(23, 39, 53, 0.07);
}

.case-tabs.nav-tabs.planning-tabs .nav-link.active::after {
  background: var(--foi-green-600);
}

.case-sheet,
.form-card,
.edit-frame {
  border-color: rgba(212, 222, 227, 0.92);
  box-shadow: var(--foi-shadow);
}

.case-tabs + .row .case-sheet {
  border-top-color: #eef1f2;
}

.case-overview {
  padding: 1.25rem;
  background: #f1f5f6;
  border-radius: 1.25rem;
}

.case-overview__status {
  background: color-mix(in srgb, var(--status-color) 20%, white);
  border-left-width: 4px;
  border-radius: 0.9rem;
}

.case-meta-item {
  padding: 1rem 1.25rem;
}

.content-section-title {
  margin-top: 2rem;
  color: #1c2833;
  font-size: 1.1rem;
}

.content-section-title > i {
  width: 42px;
  height: 42px;
  color: var(--foi-green-600);
  background: var(--foi-green-100);
  border-radius: 0.8rem;
}

.btn-primary {
  background: var(--foi-action-primary);
  border-color: var(--foi-action-primary);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background: var(--foi-action-primary-hover);
  border-color: var(--foi-action-primary-hover);
  box-shadow: 0 7px 18px rgba(16, 95, 113, 0.22);
}

.btn-outline-primary {
  color: var(--foi-action-primary-hover);
  border-color: #8bbbc6;
}

.btn-outline-primary:hover {
  color: #fff;
  background: var(--foi-action-primary);
  border-color: var(--foi-action-primary);
}

table.table,
table.dataTable {
  border-radius: 1rem;
  box-shadow: 0 8px 26px rgba(23, 39, 53, 0.07);
}

table.table > thead > tr > th,
table.table > thead > tr > td,
table.dataTable > thead > tr > th,
table.dataTable > thead > tr > td {
  padding-top: 1rem;
  padding-bottom: 1rem;
  background: #f6f8f9;
}

table.table > tbody > tr > td,
table.dataTable > tbody > tr > td {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

table.table > tbody > tr:hover > td,
table.dataTable > tbody > tr:hover > * {
  background: #fff4f5 !important;
}

/* Primary action used in request and student-application overview tables. */
.submission-open-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2rem;
  padding: 0.35rem 0.65rem;
  color: #0b5d70;
  background: #e7f5f8;
  border: 1px solid #8bc6d1;
  border-radius: 0.5rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.submission-open-link:hover,
.submission-open-link:focus-visible {
  color: #fff;
  background: #0b7285;
  border-color: #075766;
  box-shadow: 0 0 0 0.2rem rgba(11, 114, 133, 0.2);
  text-decoration: none;
}

.submission-open-link__id {
  font-variant-numeric: tabular-nums;
}

.submission-list-title {
  display: inline-block;
  margin-left: 0.55rem;
  vertical-align: middle;
}

.queue-summary {
  background: linear-gradient(112deg, #172531, #2b3540 68%, #60323f);
}

.application .card.course,
.message-card,
.process-timeline__card,
.comment-composer,
.person-summary,
.case-actions {
  border-radius: 1.1rem;
}

.application .card.course:hover {
  border-color: #e0a8b0;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: var(--foi-green-500);
}

.form-check-input:checked {
  background-color: var(--foi-green-600);
  border-color: var(--foi-green-600);
}

.footer {
  background: #17232e;
}

@media (max-width: 767.98px) {
  .case-title,
  .workspace-title,
  .profile-hero,
  .employee-workspace .course-title,
  .student-dashboard .course-title,
  .application-catalog .course-title,
  .form-page-title {
    min-height: 150px;
    padding: 1.6rem 1.25rem;
    border-radius: 1.25rem;
  }

  .workspace-tabs.nav-tabs.planning-tabs {
    min-height: 62px;
    padding: 0 0.85rem;
    gap: 1.4rem;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 0.85rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .workspace-tabs.nav-tabs.planning-tabs::-webkit-scrollbar {
    display: none;
  }

  .workspace-tabs.nav-tabs.planning-tabs .nav-link {
    min-height: 61px;
    font-size: 0.98rem;
  }
}

.app-topbar .navbar-nav .nav-link:not([aria-current="page"]) {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

@media (max-width: 991.98px) {
  .app-topbar {
    min-height: 68px;
    padding: 0.3rem 0.85rem;
  }

  .app-topbar .navbar-toggler {
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0.45rem;
    border-color: var(--foi-border-strong);
    border-radius: 0.75rem;
  }

  .app-topbar .navbar-toggler:focus {
    box-shadow: var(--foi-focus);
  }

  .app-topbar .navbar-collapse {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0.75rem;
    left: 0.75rem;
    max-height: calc(100vh - 90px);
    padding: 0.75rem;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.99);
    border: 1px solid var(--foi-border);
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(23, 39, 53, 0.18);
  }

  .app-topbar .navbar-nav {
    align-items: stretch;
    gap: 0.2rem;
  }

  .app-topbar .navbar-nav .nav-item {
    width: 100%;
  }

  .app-topbar .navbar-nav .nav-link {
    width: 100%;
    min-height: 46px;
    padding: 0.75rem 0.9rem;
    justify-content: flex-start;
    border-radius: 0.7rem;
  }

  .app-topbar .dropdown-menu {
    position: static !important;
    width: 100%;
    margin: 0.25rem 0 0.5rem;
    background: #f5f7f8;
    border: 0;
    box-shadow: none;
  }

  .app-topbar .dropdown-item {
    white-space: normal;
  }

  .app-page-content {
    padding-right: 0.85rem;
    padding-left: 0.85rem;
  }

  .case-sheet,
  .form-card,
  .edit-frame {
    padding: 1rem;
  }

  .dt-container {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
  }
}

/* End-user mobile hardening: keep wide plug-ins inside their own scroll area. */
@media (max-width: 767.98px) {
  html,
  body.app-shell {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .page-container {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    overflow-x: clip;
  }

  #wrapper,
  #page-content-wrapper,
  #page-content-wrapper > div {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .app-page-content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    overflow-x: clip;
  }

  .app-page-content > .container,
  .app-page-content > .container-sm,
  .app-page-content > .container-md,
  .app-page-content > .container-lg,
  .app-page-content > .container-xl,
  .app-page-content > .container-xxl,
  .app-page-content > .container-fluid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-right: 0;
    padding-left: 0;
  }

  .app-page-content [style*="max-width: 100vw"] {
    width: 100%;
    max-width: 100% !important;
    min-width: 0;
  }

  .employee-workspace > .row,
  .employee-workspace .col-md-12 > .row {
    width: 100%;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  .employee-workspace > .row > [class*="col-"],
  .employee-workspace .col-md-12 > .row > [class*="col-"] {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  .workspace-tabs.nav-tabs.planning-tabs,
  .case-tabs.nav-tabs.planning-tabs {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .workspace-tabs.nav-tabs.planning-tabs::-webkit-scrollbar,
  .case-tabs.nav-tabs.planning-tabs::-webkit-scrollbar {
    display: none;
  }

  .case-tabs.nav-tabs.planning-tabs {
    padding-right: 0.65rem;
    padding-left: 0.65rem;
  }

  .case-tabs.nav-tabs.planning-tabs .nav-item,
  .case-tabs.nav-tabs.planning-tabs .nav-link {
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .case-title h1,
  .workspace-title h1,
  .student-dashboard .course-title h1,
  .application-catalog .course-title h1,
  .form-page-title h1 {
    overflow-wrap: anywhere;
  }

  .dt-container,
  .dataTables_wrapper,
  .dtsp-panesContainer,
  .dtsp-searchPanes,
  .dtsp-searchPane {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .dtsp-searchPanes {
    display: flex !important;
    flex-direction: column;
  }

  .dtsp-searchPane {
    flex: 0 0 100% !important;
  }

  .dt-container > .row,
  .dtsp-searchPane .dt-container > .row {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  .dt-container > .row > [class*="col-"],
  .dtsp-searchPane .dt-container > .row > [class*="col-"] {
    width: 100%;
    min-width: 0;
    padding-right: 0;
    padding-left: 0;
  }

  .dtsp-titleRow {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    flex-wrap: wrap;
  }

  .dtsp-titleRow .dtsp-title {
    flex: 1 1 100%;
  }

  .dt-container .dt-search,
  .dataTables_wrapper .dataTables_filter {
    display: flex;
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 0.35rem;
    text-align: left;
  }

  .dt-container .dt-search input,
  .dataTables_wrapper .dataTables_filter input {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }

  .dt-container .dt-paging,
  .dataTables_wrapper .dataTables_paginate {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.2rem;
  }

  .case-overview__meta {
    grid-template-columns: 1fr;
  }

  .case-data-table-wrapper,
  .case-sheet .table-responsive {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Keep the complete landing message visible on common laptop screens. */
@media (min-width: 992px) and (max-height: 850px) {
  .app-page-content:has(> .home-landing) {
    padding-top: 1rem;
    padding-bottom: 1.25rem;
  }

  .home-landing__panel {
    min-height: 0;
    padding: 1.25rem;
    gap: clamp(2rem, 4vw, 3.5rem);
  }

  .home-landing__visual {
    min-height: clamp(400px, calc(100vh - 340px), 500px);
  }

  .home-landing__illustration {
    max-height: clamp(350px, calc(100vh - 390px), 455px);
  }

  .home-landing__eyebrow {
    margin-bottom: 0.7rem;
  }

  .home-landing__content h1 {
    font-size: clamp(3.2rem, 4.5vw, 4.3rem);
    line-height: 0.92;
  }

  .home-landing__lead {
    margin: 1rem 0 0.8rem;
    font-size: 1.02rem;
    line-height: 1.5;
  }

  .home-landing__audiences span {
    padding: 0.45rem 0.68rem;
  }

  .home-landing__actions {
    margin-top: 1rem;
  }

  .home-landing__actions .btn {
    min-height: 48px;
    padding: 0.68rem 1.1rem;
  }

  .home-landing__notice {
    margin-top: 0.8rem;
    padding-top: 0.65rem;
    font-size: 0.75rem;
    line-height: 1.4;
  }

  .home-benefits {
    margin-top: 0.7rem;
    padding: 0.6rem;
    gap: 0.4rem;
  }

  .home-benefit {
    padding: 0.45rem 0.75rem;
    gap: 0.7rem;
  }

  .home-benefit > i {
    width: 36px;
    height: 36px;
  }

  body:has(.home-landing) .footer {
    margin-top: 0 !important;
    padding: 0.25rem 1rem;
  }

  body:has(.home-landing) .footer .container {
    max-width: 1320px;
  }

  body:has(.home-landing) .footer .contact-footer,
  body:has(.home-landing) .footer .col-lg-3:last-child {
    font-size: 0.78rem;
    line-height: 1.35;
  }
}

/* Consistent count pills for workspace tabs, from one to multiple digits. */
.workspace-tabs .badge {
  width: auto;
  min-width: 2rem;
  height: 1.75rem;
  min-height: 1.75rem;
  padding: 0 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  border-radius: 999px !important;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* DataTables SearchPanes */
.dtsp-panesContainer {
  margin-bottom: 1.5rem;
  padding: 1.25rem !important;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 1.25rem;
  box-shadow: var(--foi-shadow-sm);
}

.dtsp-titleRow {
  min-height: 42px;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.dtsp-titleRow .dtsp-title {
  margin-right: auto;
  color: #344553;
  font-size: 0.88rem;
  font-weight: 680;
}

.dtsp-titleRow button,
.dtsp-titleRow .dt-button {
  min-height: 36px;
  margin: 0 !important;
  padding: 0.45rem 0.72rem !important;
  color: #5f6f7d !important;
  background: #fff !important;
  background-image: none !important;
  border: 1px solid var(--foi-border) !important;
  border-radius: 0.65rem !important;
  box-shadow: none !important;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1;
}

.dtsp-titleRow button:hover,
.dtsp-titleRow button:focus,
.dtsp-titleRow .dt-button:hover,
.dtsp-titleRow .dt-button:focus {
  color: var(--foi-green-700) !important;
  background: var(--foi-green-100) !important;
  border-color: #efb5bd !important;
}

.dtsp-titleRow button:disabled,
.dtsp-titleRow .dtsp-disabledButton {
  opacity: 0.45;
}

.dtsp-searchPanes {
  padding: 0.25rem 0.35rem 0.5rem;
  align-items: stretch;
  gap: 0.8rem;
}

.dtsp-searchPane {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--foi-border) !important;
  border-radius: 0.95rem;
  box-shadow: 0 7px 22px rgba(23, 39, 53, 0.055);
}

.dtsp-searchPane .dtsp-topRow {
  min-height: 51px;
  margin: 0 !important;
  padding: 0.45rem 0.55rem;
  display: flex;
  align-items: center;
  background: #f7f9fa;
  border-bottom: 1px solid var(--foi-border);
}

.dtsp-searchPane .dtsp-subRow1 {
  min-width: 0;
  flex: 1 1 auto;
}

.dtsp-searchPane .dtsp-searchCont,
.dtsp-searchPane .dtsp-searchButtonCont {
  width: 100%;
}

.dtsp-searchPane input.dtsp-search {
  width: 100% !important;
  min-height: 38px;
  padding: 0.45rem 2.35rem 0.45rem 0.72rem !important;
  color: var(--foi-text);
  background: #fff !important;
  border: 1px solid var(--foi-border-strong) !important;
  border-radius: 0.65rem !important;
  box-shadow: none !important;
  font-size: 0.84rem;
}

.dtsp-searchPane input.dtsp-search:focus {
  border-color: var(--foi-green-500) !important;
  box-shadow: var(--foi-focus) !important;
}

.dtsp-searchPane .dtsp-subRow2,
.dtsp-searchPane .dtsp-buttonGroup {
  width: auto;
  flex: 0 0 auto;
}

.dtsp-searchPane .dtsp-buttonGroup {
  display: flex;
  gap: 0.15rem;
}

.dtsp-searchPane button.dtsp-paneButton {
  width: 32px;
  height: 32px;
  margin: 0 !important;
  padding: 0 !important;
  color: #7b8892 !important;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0.5rem !important;
  box-shadow: none !important;
}

.dtsp-searchPane button.dtsp-paneButton:hover,
.dtsp-searchPane button.dtsp-paneButton:focus {
  color: var(--foi-green-700) !important;
  background: var(--foi-green-100) !important;
}

.dtsp-searchPane .dt-container {
  overflow: hidden;
}

.dtsp-searchPane table.dataTable {
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.dtsp-searchPane table.dataTable > tbody > tr > td {
  padding: 0.62rem 0.72rem;
  background: #fff;
  border-bottom: 1px solid #edf1f3 !important;
  font-size: 0.87rem;
}

.dtsp-searchPane table.dataTable > tbody > tr:last-child > td {
  border-bottom: 0 !important;
}

.dtsp-searchPane table.dataTable > tbody > tr:hover > td {
  background: #fff6f7 !important;
}

.dtsp-searchPane table.dataTable > tbody > tr.selected > * {
  color: var(--foi-text) !important;
  background: #fff0f2 !important;
  box-shadow: inset 3px 0 0 var(--foi-green-500) !important;
}

.dtsp-searchPane .dtsp-nameCont {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center !important;
  gap: 0.55rem;
}

.dtsp-searchPane .dtsp-name {
  width: 0 !important;
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  flex: 1 1 0 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dtsp-searchPane .dtsp-pill {
  min-width: 2rem;
  height: 1.5rem;
  margin-right: 0.5rem !important;
  margin-left: 0 !important;
  padding: 0 0.48rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  order: -1 !important;
  flex: 0 0 auto;
  color: #42515d;
  background: #e8edef;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.dtsp-searchPane .dtsp-pill:not(:empty) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: center;
  line-height: 1 !important;
  vertical-align: middle;
}

.dtsp-searchPane .dt-scroll-body {
  scrollbar-color: #a8b2b8 transparent;
  scrollbar-width: thin;
}

.dtsp-searchPane .dt-scroll-body::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

.dtsp-searchPane .dt-scroll-body::-webkit-scrollbar-thumb {
  background: #a8b2b8;
  border: 2px solid #fff;
  border-radius: 999px;
}

.dtsp-searchPane .dt-scroll-body::-webkit-scrollbar-track {
  background: transparent;
}

@media (max-width: 767.98px) {
  .dtsp-panesContainer {
    padding: 0.85rem !important;
    border-radius: 1rem;
  }

  .dtsp-searchPanes {
    padding: 0.15rem 0.15rem 0.35rem;
  }

  .dtsp-titleRow {
    align-items: stretch;
  }

  .dtsp-titleRow .dtsp-title {
    flex: 1 1 100%;
  }

  .dtsp-titleRow button,
  .dtsp-titleRow .dt-button {
    flex: 1 1 auto;
  }

  .dtsp-searchPanes {
    gap: 0.7rem;
  }

  .dtsp-searchPane {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  .dtsp-searchPane .dt-scroll-body {
    overflow-x: hidden !important;
  }
}

/* AI assistant */
.ai-assistant-modal .modal-dialog {
  width: calc(100% - 2rem);
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

.ai-assistant-modal .modal-content {
  overflow: hidden;
  border: 1px solid rgba(11, 36, 66, 0.12);
  border-radius: 1.15rem;
  box-shadow: 0 24px 70px rgba(7, 27, 51, 0.24);
}

.ai-assistant-modal__header {
  position: relative;
  min-height: 90px;
  padding: 1.15rem 1.35rem;
  color: #fff;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.14) 0 3px, transparent 4px),
    linear-gradient(112deg, var(--foi-navy-950), #174b65 68%, var(--foi-action-primary));
  border: 0;
}

.ai-assistant-modal__header::after {
  position: absolute;
  right: 4.5rem;
  bottom: -3.2rem;
  width: 8rem;
  height: 8rem;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.ai-assistant-modal__identity {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 0.9rem;
}

.ai-assistant-modal__icon {
  display: inline-flex;
  flex: 0 0 2.8rem;
  width: 2.8rem;
  height: 2.8rem;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.85rem;
  font-size: 1.15rem;
}

.ai-assistant-modal__header .modal-title {
  margin: 0;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.015em;
}

.ai-assistant-modal__header p {
  margin: 0.15rem 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.83rem;
  line-height: 1.35;
}

.ai-assistant-modal__header .btn-close {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  margin: 0;
  padding: 0.7rem;
  border-radius: 50%;
  opacity: 0.82;
}

.ai-assistant-modal__header .btn-close:hover,
.ai-assistant-modal__header .btn-close:focus {
  background-color: rgba(255, 255, 255, 0.12);
  opacity: 1;
}

.ai-assistant-modal .modal-body {
  padding: 1.5rem;
  color: var(--foi-text);
  background: #fbfcfd;
}

.ai-response {
  display: grid;
  gap: 1rem;
}

.ai-response__summary {
  padding: 0.1rem 0.15rem 0.45rem;
}

.ai-response__eyebrow {
  display: flex;
  align-items: center;
  margin-bottom: 0.65rem;
  color: var(--foi-action-primary);
  gap: 0.45rem;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.ai-response__content {
  color: #29384a;
  font-size: 0.95rem;
  line-height: 1.65;
}

.ai-response__content p {
  margin: 0 0 0.6rem;
}

.ai-response__content p:last-child,
.ai-response__content > :last-child {
  margin-bottom: 0;
}

.ai-response__section {
  display: grid;
  grid-template-columns: 2.45rem minmax(0, 1fr);
  padding: 1.05rem 1.1rem;
  background: var(--foi-surface);
  border: 1px solid var(--foi-border);
  border-radius: 0.9rem;
  box-shadow: 0 2px 9px rgba(11, 36, 66, 0.04);
  gap: 0.85rem;
}

.ai-response__section--state {
  border-left: 4px solid var(--foi-action-primary);
}

.ai-response__section--next {
  border-left: 4px solid var(--foi-green-500);
}

.ai-response__section-icon {
  display: inline-flex;
  width: 2.35rem;
  height: 2.35rem;
  align-items: center;
  justify-content: center;
  color: var(--foi-action-primary);
  background: var(--foi-action-primary-soft);
  border-radius: 0.7rem;
}

.ai-response__section--next .ai-response__section-icon {
  color: var(--foi-green-700);
  background: var(--foi-green-100);
}

.ai-response__section h3 {
  margin: 0.1rem 0 0.45rem;
  color: var(--foi-navy-900);
  font-size: 0.96rem;
  font-weight: 780;
}

.ai-assistant-modal__footer {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0.85rem 1.5rem;
  color: var(--foi-text-muted);
  background: #f5f7f9;
  border-top: 1px solid var(--foi-border);
  gap: 0.65rem;
}

.ai-assistant-modal__footer > i {
  margin-top: 0.15rem;
  color: var(--foi-action-primary);
}

.ai-assistant-modal__footer p {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.45;
}

.ai-assistant-modal__footer strong,
.ai-assistant-modal__footer span {
  display: block;
}

.ai-assistant-modal__footer strong {
  color: #46576a;
  font-size: 0.78rem;
}

.ai-assistant-loading {
  display: flex;
  min-height: 220px;
  align-items: center;
  justify-content: center;
  color: var(--foi-text);
  gap: 0.9rem;
  text-align: left;
}

.ai-assistant-loading__icon {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  color: var(--foi-action-primary);
  background: var(--foi-action-primary-soft);
  border-radius: 0.9rem;
  font-size: 1.15rem;
}

.ai-assistant-loading strong {
  font-size: 1rem;
}

.ai-assistant-loading p {
  margin: 0.2rem 0 0;
  color: var(--foi-text-muted);
  font-size: 0.85rem;
}

.ai-assistant-loading__dots {
  display: inline-flex;
  margin-left: 0.35rem;
  gap: 0.2rem;
}

.ai-assistant-loading__dots i {
  width: 0.28rem;
  height: 0.28rem;
  background: var(--foi-action-primary);
  border-radius: 50%;
  animation: ai-assistant-pulse 1.2s ease-in-out infinite;
}

.ai-assistant-loading__dots i:nth-child(2) {
  animation-delay: 0.15s;
}

.ai-assistant-loading__dots i:nth-child(3) {
  animation-delay: 0.3s;
}

.ai-response-error {
  display: flex;
  min-height: 180px;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  color: #7f2630;
  background: #fff1f2;
  border: 1px solid #f2cbd0;
  border-radius: 0.9rem;
  gap: 0.85rem;
}

.ai-response-error > span {
  font-size: 1.5rem;
}

.ai-response-error strong {
  display: block;
  margin-bottom: 0.2rem;
}

.ai-response-error p {
  margin: 0;
  font-size: 0.9rem;
}

@keyframes ai-assistant-pulse {
  0%, 80%, 100% {
    opacity: 0.28;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@media (max-width: 575.98px) {
  .ai-assistant-modal .modal-dialog {
    width: calc(100% - 1rem);
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .ai-assistant-modal__header,
  .ai-assistant-modal .modal-body,
  .ai-assistant-modal__footer {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .ai-assistant-modal__header p {
    display: none;
  }

  .ai-response__section {
    grid-template-columns: 1fr;
  }

  .ai-response__section-icon {
    width: 2rem;
    height: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-assistant-loading__dots i {
    animation: none;
    opacity: 0.65;
  }
}
