@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

html, body {
    height: 100% ;
    margin: 0 ;
    font-family: 'Roboto', sans-serif ;
    color: #333 !important;
}

.bg-image {
    position: relative !important;
    background-image: url('../images/DanskAkva.png') ;
    background-size: cover;
    background-position: center ;
    height: 100% ;
    display: flex ;
    flex-direction: column ;
}

.table-fixed-header {
  overflow-y: auto;
  max-height: 400px; 
}
.table-fixed-header thead th {
  position: sticky;
  top: 0;
  background-color: #bee5eb; 
}

.lang-btn {
  min-width: 44px;
  font-weight: 600;
  letter-spacing: .04em;
}
.btn-group .active {
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
}

.bg-image::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.4) !important;
    z-index: 0 !important;
}

.navbar-custom,
.main-content,
.footer {
    position: relative ;
    z-index: 1 ;
}


.table {
  table-layout: fixed;
  width: 100%;
}

.table th, .table td {
  overflow-wrap: break-word;
  word-wrap: break-word;
  white-space: normal;
}

.table td textarea.form-control, .table td input.form-control {
  width: 100%;
  box-sizing: border-box;
}

.navbar-custom {
    background-color: hsla(211, 32%, 26%, 0.85) !important;
    padding: 1em 2em !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center t !important;
}

.navbar-custom a {
    color: #fff ;
    text-decoration: none ;
    font-weight: 700 ;
    padding: 0.5em 1em ;
    border-radius: 5px ;
    transition: background-color 0.3s, color 0.3s ;
}

.footer {
    width: 100%;
    background-color: hsla(211, 32%, 26%, 0.85) !important;
    padding: 1em 2em ;
    display: flex ;
    justify-content: space-between ;
    align-items: center t;
}

.footer a {
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    padding: 0.5em 1em !important;
    border-radius: 5px !important;
    transition: background-color 0.3s, color 0.3s !important;
}

.footer a:hover {
    background-color: rgba(255, 255, 255, 0.2) !important ;
    color: #fff;
}

.navbar-custom a:hover {
    background-color: rgba(255, 255, 255, 0.2) !important ;
    color: #fff;
}

.main-content {
    flex-grow: 1 ;
    display: flex ;
    justify-content: center ;
    align-items: center ;
    text-align: center ;
    padding: 2em ;
    color: #fff ;
    text-shadow: 0 2px 5px rgba(0,0,0,0.7) !important;
}

.main-content h1 {
    font-size: 3.5rem ;
    margin: 0 ;
    line-height: 1.2 ;
}


.table td a {
  display: inline-block;
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}



/* visuelle knapper for CheckboxSelectMultiple */

.checkbox { list-style: none; padding-left: 0; }
.checkbox li { display:inline-block; margin:0 .5rem .5rem 0; }
.checkbox li input[type="checkbox"] { display:none; }
.checkbox li input[type="checkbox"]:checked + label {
  background:#0d6efd; color:#fff; border-color:#0d6efd;
}
.checkbox li label {
  display:inline-block; padding:.35rem .75rem;
  border:1px solid #bbb; border-radius:999px;
  cursor:pointer; background:#f9f9f9;
}


/* Sørg for at fase-piller altid kan klikkes */
.phase-pills label,
.phase-pills .form-check-label {
  cursor: pointer;
  pointer-events: auto;
}

.phase-pills input[type="checkbox"] {
  display: inline-block;       /* sikrer den ikke er skjult */
  pointer-events: auto;
  position: static;            /* undgå absolut-positionerede overlays */
  margin-right: .25rem;
}

/* Hvis du stadig vil have "pille"-looket: brug label som badge */
.phase-pills .form-check-label {
  display: inline-block;
  padding: .25rem .5rem;
  border-radius: 999px;
  background: #eef2f7;
  border: 1px solid #cfd7e3;
  margin: .15rem .25rem .15rem 0;
}

.phase-pills .form-check-input:checked + text { /* fallback hvis nogen temaer bruger sibling-tekst */
  font-weight: 600;
}

/* Alternativ: style :has() hvis understøttet */
.phase-pills .form-check-label:has(> .form-check-input:checked) {
  background: #dbeafe;
  border-color: #93c5fd;
}

/* Gælder uanset markup – fjern bullets og venstre indrykning */
.phases-cell .phase-pills ul,
.phases-cell .phase-pills ol {
  list-style-type: none !important;
  list-style: none !important;
  margin: 0;
  padding-left: 0;          /* BS sætter ofte padding-left på ul */
  padding-inline-start: 0;  /* cross-browser */
}

/* Hvis nogen sætter list-style på <li>, slå det også fra */
.phases-cell .phase-pills li {
  list-style: none !important;
}

/* Fjern selve markeringssymbolerne i moderne browsere */
.phases-cell .phase-pills li::marker {
  content: "";
}

/* Din “pill”-stil (kan stå her eller hvor du allerede har den) */
.phases-cell .phase-pills li {
  display: inline-block;
  margin: 0 .5rem .5rem 0;
}
.phases-cell .phase-pills li label {
  display: inline-block;
  padding: .35rem .75rem;
  border: 1px solid #bbb;
  border-radius: 999px;
  cursor: pointer;
  background:#f9f9f9;
}
.phases-cell .phase-pills li input[type="checkbox"] {
  display: none;
}
.phases-cell .phase-pills li input[type="checkbox"]:checked + label {
  background:#0d6efd;
  color:#fff;
  border-color:#0d6efd;
}

.footer {
    background-color: rgba(255, 255, 255, 0.9) ;
    text-align: center ;
    padding: 1em ;
    font-size: 0.9rem ;
    color: #555 ;
}

@media (max-width: 768px) {
    .main-content h1 {
        font-size: 2.5rem ;
    }
    .navbar-custom {
        flex-direction: column ;
        gap: 1em ;
    }
}

.container { max-width: 600px !; 
             margin: 0 auto ;
             background: #fff ; 
             padding: 20px ; 
             border-radius: 8px ; 
             box-shadow: 0 2px 4px rgba(0,0,0,0.1) ; 
}
        
.success { background-color: #d4edda ; 
           color: #155724 ; 
}

.error { background-color: #f8d7da ; 
         color: #721c24 ; 
}

.GPOFA-logo {
  display: inline-block;
  font-family: 'Montserrat', sans-serif; 
  font-weight: 900;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  padding: 0.5em 1em;
  border-radius: 0.3em;
  text-decoration: none;
}
.GPOFA-logo:hover {
  opacity: 0.8 ;
}

.dropdown-toggle::after {
  display: none !important;
}

.dropdown-submenu {
  position: relative !important;
}

.dropdown-submenu > .dropdown-menu {
  top: 100% !important;
  left: 0 !important;
  margin-top: 0 !important;
}

.navbar-custom .dropdown-menu {
  background-color: #fff !important;
  overflow: visible !important;
}

.navbar-custom .dropdown-item {
  color: #212529 !important;
}
.navbar-custom .dropdown-item:hover {
  background-color: #f1f1f1 !important;
  color: #000 !important;
}

.nav-link.menu-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.nav-link.menu-icon i {
  font-size: 24px;
}
.nav-link.menu-icon span {
  font-size: 0.75rem;
  margin-top: 4px;
}


.nav-link.icon-label {
  display: flex !important;
  flex-direction: column;
  align-items: center;
}
.nav-link.icon-label i {
  font-size: 24px;
}
.nav-link.icon-label span {
  font-size: 0.75rem;
  margin-top: 4px;
}