html,
body {
  height: 100%;
  font-family: "ClashGrotesk-Variable", Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.full-width {
  width: 100%;
}

@media (max-width: 600px) {
  html,
  body {
    font-size: 0.875rem;
  }
}

html {
  background: var(--grey);
}

body {
  background: none;
  padding-top: 68px;
}

.content > .tab-content {
  padding-top: 2rem;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 500;
}

/* hiding content */
.visually-hidden {
  position: absolute;
  left: -7000px;
  overflow: hidden;
}

.left {
  float: left;
  height: 100%;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

/* footer */
/* .navbar-fixed-bottom .navbar-inner {
  background: black;
  color: var(--cold-grey);
  height: 2rem;
  line-height: 2rem;
  font-size: 1rem;
  border: none;
} */
.navbar-fixed-bottom,
.navbar-fixed-bottom .navbar-inner {
  border-top: #0c0c14;
  background: #14141a;
  width: 100%;
  max-width: 100vw;
}

.navbar-fixed-bottom .nav a {
  border-left: 1px solid #000000;
}

.navbar-fixed-bottom .nav a i {
  text-shadow: none;
}

.navbar-fixed-bottom .pull-left,
.navbar-fixed-bottom .navbar-brand {
  color: #3d3d40;
  font-size: 11px;
  text-transform: uppercase;
  padding: 10px 0px;
}
@media (max-width: 500px) {
  .navbar-fixed-bottom .pull-right {
    display: none;
  }
}
#navbarNavDropdown li.nav-item {
  min-width: 40px;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.website_wrapper,
.website_wrapper > .row-fluid {
  height: 100%;
  min-height: calc(100vh - 100px);
  overflow: hidden;
}

.main {
  width: auto;
  height: 100%;
  min-height: 300px;
  float: none;
  overflow: auto;
}

.main_title {
  color: white;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.5rem;
  letter-spacing: 0.02em;
  text-align: left;
  margin-left: 1rem;
  margin-top: 22px;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.main .tab-content {
  background: white;
}

.main > .content > .tab-content {
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: calc(110px + 4rem); /* 110 = Footer size*/
}

.content .nav {
  margin: 0;
}

/**
  Footer navbar
 */
a.tipholder-bottom:hover i {
  color: var(--green);
}

/* ----------------------------- */
/* == Sidebar  */
/* ----------------------------- */

.left.aside {
  height: 100%;
  background-color: var(--grey);
}

.dashboard {
  background-color: var(--dark-grey);
}

/* dashboard left toggle column button */

.toggle-column {
  padding-top: 59px;
}

.row-fluid:has(.nav-tabs) .toggle-column {
  padding-top: 106px;
}

.toggle-column .inner {
  position: relative;
  float: right;
  margin-right: -38px;
  z-index: 2;
}

.toggle-column .inner a {
  background-color: var(--side-grey);
  background-image: none;
  color: white;
  text-shadow: none;
  border: none;
  box-shadow: none;
  border-radius: 0 20px 20px 0;
  width: 36px;
  height: 20px;
  padding: 4px 2px 4px 0px;
}

.toggle-column .inner a:hover {
  background-color: var(--dark-grey);
}

/* SideBar */

.dashboard {
  width: 120px;
  height: 100%;
}

.dashboard ul {
  margin: 0;
  margin-top: 1rem;
  padding-left: 0;
}

.dashboard li {
  width: 84px;
  height: 84px;
  text-align: center;
  margin: 0 auto;
  margin-bottom: 0.5rem;
  border-radius: 6px;
}

.dashboard li.current {
  background-color: var(--green-darken);
}

.dashboard li:hover {
  background-color: var(--green);
}

.dashboard li a,
.dashboard li a:hover {
  padding-top: 1rem;
  color: white;
  display: inline-block;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.25rem;
}

.dashboard li a i {
  display: inline-block;
  width: 100%;
}

/* Category */

.cal-category {
  width: 230px;
  height: 100%;
  color: white;
  background-color: var(--side-grey);
  padding: 0 10px 210px 10px;
  overflow: auto;
}

.cal-category h2 {
  margin-top: 2rem;
  margin-left: 2px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5rem;
  letter-spacing: 0.02em;
  text-align: left;
}

.cal-category h2 i {
  margin-right: 8px;
}

.cal-category ul,
.cal-category li,
.cal-category input {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5rem;
  letter-spacing: 0.02em;
  text-align: left;
}

.cal-category ul {
  margin-bottom: 1rem;
}

.cal-category li {
  padding: 2px 2px 2px 4px;
  margin-bottom: 2px;
  border-radius: 4px;
}

.cal-category li:hover {
  background-color: var(--dark-grey);
}

.cal-category li.selected {
  background-color: var(--green-darken);
}

.cal-category input {
  padding: 0;
  margin: 0;
  margin-bottom: 1px;
}

/* ----------------------------- */
/* == navbars  */
/* ----------------------------- */
/* Top nav bar general layout */
.navbar-fixed-top {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
  margin-bottom: 0;
  padding: 0;
}

.navbar-fixed-top a {
  text-decoration: none;
}

.navbar .container-fluid {
  padding-left: 20px;
  padding-right: 20px;
}

.navbar-fixed-top.navbar .navbar-inner {
  background: var(--dark-grey);
  height: auto;
  padding: 11px 0;
  border: none;
  width: 100%;
  max-width: 100vw;
}

.navbar .nav.pull-right {
  float: right;
  margin-right: 0;
}

/* Title */

.navbar-fixed-top.navbar .brand {
  display: block;
  float: left;
  padding: 10px 20px 10px;
  margin-left: -20px;
  color: #fbfbfd;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.5rem;
  text-align: left;
  text-shadow: none;
}

.navbar-fixed-top a:hover {
  text-decoration: none;
}

/* Switch user */

.navbar-fixed-top .embossed,
.navbar-fixed-top li.dropdown > a.dropdown-toggle,
.navbar-fixed-top .nav li.dropdown.open > a.dropdown-toggle {
  display: inline-block;
  color: white;
  background-color: var(--medium-grey);
  height: 46px;
  line-height: 46px;
  margin: 0 0 0 10px;
  border-radius: 6px;
  padding: 0 10px;
  font-weight: 400;
}

.navbar-fixed-top .embossed .user-initials {
  display: none;
}

.navbar .nav li.dropdown > .dropdown-toggle .caret,
.navbar .nav li.dropdown.open > .dropdown-toggle .caret,
.navbar .nav li.dropdown.active > .dropdown-toggle .caret,
.navbar .nav li.dropdown.open.active > .dropdown-toggle .caret {
  margin-top: 17px;
  margin-left: 6px;
  border: solid white;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 3px;
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  margin-right: 4px;
}
.new_base.navbar .nav li.dropdown > .dropdown-toggle .caret {
  transform: rotate(45deg) translate(-2px, -2px);
  -webkit-transform: rotate(45deg) translate(-2px, -2px);
}

.navbar-fixed-top .nav li.dropdown.open > a.dropdown-toggle {
  background-color: var(--medium-grey);
}

.navbar-fixed-top .embossed:hover,
.navbar-fixed-top .dropdown a.dropdown-toggle:hover {
  background-color: var(--cold-grey);
  color: white;
  font-weight: 400;
}

.navbar-fixed-top .nav > li > a {
  padding: 0;
  text-shadow: none;
}

.navbar-fixed-top .embossed i {
  color: var(--green);
  font-size: 1rem;
  padding-left: 6px;
}

.navbar .nav > li > .dropdown-menu::before,
.navbar .nav > li > .dropdown-menu:after {
  content: none;
}

.navbar-fixed-top .nav .dropdown-menu {
  margin-top: 8px !important;
  border-radius: 8px;
  box-shadow: none;
  min-width: 170px;
  box-sizing: content-box;
}

/* Dropdown */
.navbar-fixed-top a.dropdown-toggle img {
  width: 30px;
  border-radius: 15px;
  margin-right: 4px;
}

/*Autre*/

div.header {
  background-color: var(--ice-blue);
  border-radius: 8px;
  padding: 0.5rem 1rem 1rem 1rem;
  box-sizing: border-box;
  margin-bottom: 2rem;
}

div.header hr {
  background: var(--blue);
  height: 1px;
  width: 100%;
  border: none;
}

div.header p {
  margin-bottom: 10px;
}

div.header h3 {
  margin: 10px 0;
  font-size: 1rem;
  font-weight: 450;
  line-height: 1.5rem;
  text-align: left;
  text-transform: uppercase;
}

div.header h3 small {
  margin-left: 10px;
  font-size: 13px;
}

div.header h3 small i {
  color: #bbbbbb;
}

div.header .actions_wrapper {
  margin-bottom: 0;
}

a.help {
  font-weight: 400;
}

div.header a.help {
  text-decoration: none;
  display: inline-block;
  margin-top: 10px;
}

div.header a.help i {
  margin-right: 4px;
}

div.header a.help:hover {
  color: var(--green-darken);
}

h3 {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.5rem;
  color: black;
}

h4 {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5rem;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

h4 small {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

h4 .actions_wrapper {
  margin-bottom: 0;
  margin-left: auto;
}

.badge,
span.badge {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: inherit;
  text-align: right;
  text-decoration: none;
  text-shadow: none;
  background: var(--grey);
  border-radius: 4px;
  vertical-align: bottom;
  margin: 0 4px;
  padding: 4px 8px;
}

.no_data {
  background-color: white;
  padding: 10px;
}

.well {
  background-color: var(--ice-blue);
  box-shadow: none;
  border-radius: 8px;
  border: none;
  padding: 1rem;
}

.well hr {
  background: var(--blue);
  height: 1px;
  width: 100%;
  border: none;
}

.alert {
  border: none;
  font-size: 0.875rem;
  font-weight: 450;
  line-height: 1.5rem;
  text-align: left;
  text-transform: none;
  padding: 8px;
}

.alert.alert-warning {
  background-color: #fcf8e5;
  color: #ba995e;
}

.alert.alert-warning a {
  color: var(--green-darken);
}

.alert.alert-warning a:hover,
.header .alert.alert-warning a:hover {
  color: var(--green);
}

.alert.alert-info {
  background-color: var(--green-lighten);
  color: var(--green-darken);
}

.alert strong,
strong {
  font-weight: 500 !important;
}

/* mobile optimisation */
@media (max-width: 500px) {
  .main > .content > .tab-content {
    padding-left: 10px;
    padding-right: 10px;
  }

  .navbar-fixed-top.navbar .brand {
    padding: 10px 0px 10px 6px;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .content > .tab-content {
    padding-top: 1rem;
  }

  .brand-mini {
    display: none;
  }

  .navbar-fixed-top .embossed .user-full-name {
    display: none;
  }

  .navbar-fixed-top .embossed .user-initials {
    display: inline-block;
  }

  .row-fluid .left {
    height: auto;
    float: none;
    clear: both;
    width: auto;
    position: relative;
  }

  .row-fluid .left .dashboard {
    height: 70px;
  }

  .row-fluid .left .dashboard ul {
    width: auto;
    margin: 0;
    list-style-type: none;
  }

  .row-fluid .left .dashboard ul li {
    float: left;
    width: 20%;
    margin: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    height: 70px;
    border-radius: 0;
    border: 1px solid var(--medium-grey);
    border-left: none;
  }

  .row-fluid .left .dashboard ul li a {
    padding-top: 12px;
  }

  .row-fluid .left .toggle-column {
    position: absolute;
    padding: 0;
    top: 70px;
    left: 0;
    right: 0;
    margin-top: 0;
    z-index: 10;
    text-align: left;
    background: none;
  }

  .row-fluid .left .toggle-column .inner {
    margin: 0;
  }

  .toggle-column .inner a {
    background: var(--medium-grey);
    border-radius: 0 0 20px 20px;
    width: 30px;
    height: 24px;
    margin-right: 6px;
    padding: 4px 2px 2px 2px;
  }

  .row-fluid .left .cal-category {
    position: relative;
    z-index: 5;
    padding: 5px 10px;
    margin: 0 0 -20px 0;
  }

  .cal-category .input-prepend input,
  .cal-category .input-append input,
  .cal-category .input-prepend input[class*="span"],
  .cal-category .input-append input[class*="span"],
  .cal-category .select2-choices {
    min-height: 30px;
    width: 92%;
    font-size: 0.75rem;
  }

  .main {
    width: 100%;
    clear: both;
    height: auto;
    overflow: visible;
    min-height: initial;
  }

  .website_wrapper > .row-fluid {
    overflow: scroll;
  }
}

/* ----------------------------- */
/* == Bottom Toolbar  */
/* ----------------------------- */

.navbar-fixed-bottom {
  position: fixed;
  right: 0;
  left: 0;
  z-index: 1030;
  margin-bottom: 0;
  bottom: 0;
  padding: 0;
}
.navbar-fixed-bottom a:hover i {
  color: var(--green);
}

.navbar-fixed-bottom a:hover i.disabled {
  color: var(--cold-grey);
}

.navbar-fixed-bottom a.red-txt:hover i {
  color: var(--red-darken);
}

.navbar-fixed-bottom a.orange-txt:hover i {
  color: var(--orange-darken);
}

/* ----------------------------- */
/* == Error page  */
/* ----------------------------- */

.errorPage {
  width: 50%;
  text-align: center;
}

.errorPage h2 {
  color: var(--dark-grey);
  font-weight: 450 !important;
}

.errorPage a {
  font-weight: 400;
}

.errorPage h2 small {
  text-transform: lowercase;
  font-size: 1rem;
  font-weight: 400;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .row-fluid.large > .span6 {
    width: 100%;
    margin: 0;
  }
}

.th-normal {
  font-weight: normal;
}

/* Payment Request fix form - field errors layout */
.pr-fix-form-fields {
  margin: 0 15px;
}

.pr-fix-form-fields .control-group {
  margin-bottom: 10px;
}

.deadline-weekend-warning {
  margin-top: 15px;
  margin-bottom: 0;
}

.deadline-weekend-warning .alert {
  font-size: 1.25rem;
}

/* Weekend days pill picker */
.weekend-days-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.weekend-day-pill {
  padding: 8px 16px;
  border: 1px solid #d0d0d0;
  border-radius: 20px;
  background: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.15s ease;
}

.weekend-day-pill:hover {
  background: #f5f5f5;
}

.weekend-day-pill.is-selected {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.weekend-day-pill.is-selected:hover {
  background: var(--green-darken);
  border-color: var(--green-darken);
}

.weekend-day-pill.is-invalid {
  background: #d9534f;
  color: #fff;
  border-color: #d9534f;
}

.weekend-days-hint {
  margin-top: 8px;
  color: #d9534f;
  font-size: 0.85rem;
}

/* Dashboard — cellule "Pas affecté à cet office" (hors période de contract) */
.day.not-at-office {
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 4px,
    rgba(0, 0, 0, 0.05) 4px,
    rgba(0, 0, 0, 0.05) 8px
  );
  cursor: help;
}

/* Sous-libellé office sous le nom employé (uniquement multi-offices) */
.user-first-row .user-name + small,
.user-extra-row small {
  display: block;
  color: #888;
  font-size: 0.75rem;
  margin-top: 2px;
}

/* -------------------------------------------------------------------------
 * Reveal-credential toggle (Stimulus controller `shared--reveal-credential`)
 *
 * Used to mask sensitive credentials (FTP login/password, etc.) inline
 * with a blur filter + non-selectable text. The accompanying eye-icon
 * button (`.is-credential-toggle`) flips the state.
 * ------------------------------------------------------------------------- */
.is-hidden-credential {
  filter: blur(4px);
  user-select: none;
  -webkit-user-select: none;
  transition: filter 0.15s ease;
}
.is-hidden-credential:hover {
  cursor: not-allowed;
}
.is-credential-toggle {
  margin-left: 0.35em;
  color: var(--green);
  cursor: pointer;
  transition: color 0.15s ease;
}
.is-credential-toggle:hover,
.is-credential-toggle:focus {
  color: var(--green-darken);
  outline: none;
}

/* Generic solid round badge with a white icon, anchored inside a
   `position: relative` field wrapper, flush right and vertically centered
   (see public/app/css/v2/task.css:266-290 for the .actions_wrapper equivalent
   used when the icon isn't sitting inside a form field). */
.icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  width: 32px;
  font-size: 0.9rem;
  border-radius: 100%;
  background-color: var(--green);
  color: white;
  cursor: pointer;
  position: absolute;
  /* `top` is set inline by the controller: it depends on the field's own
     height within its wrapper (label height varies), a `top: 50%` here would
     center on the wrapper instead of the field — verified live, off by 17px. */
  right: 12px;
}

.icon-badge:hover {
  background-color: var(--green-darken);
}

.bills-export-heading {
  font-size: 16px;
}

@keyframes spin-icon-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.spin-icon {
  display: inline-block;
  animation: spin-icon-rotate 1s linear infinite;
}
