/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
@import "navbar";

/* Sidebar Styles */
.sidebar {
  padding-top: 80px;
  /* Pour éviter que la navbar ne masque le contenu */
  background-color: #051825 !important;
  height: auto;
  min-height: calc(100vh - 80px);
  overflow-y: auto;
  max-width: 250px !important;
  transition: width 0.3s ease;
}

.sidebar.collapsed {
  width: 80px !important;
}

@media (min-width: 768px) {
  #sidebar.sidebar {
    flex: 0 0 250px;
    width: 250px !important;
    max-width: 250px !important;
  }

  #sidebar.sidebar.collapsed {
    flex: 0 0 80px;
    width: 80px !important;
    max-width: 80px !important;
  }

  #sidebar + .main-content,
  #sidebar + main {
    flex: 1 1 0;
    width: auto !important;
    min-width: 0;
  }
}

.sidebar.collapsed .nav-pills > li > .nav-link span {
  display: none;
}

.sidebar.collapsed img.logo-full {
  display: none;
  width: 50px;
  margin: auto;
}

.sidebar img.logo-icon {
  display: none;
}

.sidebar.collapsed img.logo-icon {
  display: block;
  width: 50px;
  margin: auto;
}

/* Navbar Active Link */
.nav-link.active {
  background-color: #042650 !important;
  color: white !important;
  border-radius: 5px;
}

.nav-link.active:hover {
  background-color: #06408a !important;
  /* Légère variation pour le hover */
  color: white !important;
}

/* Buttons */
.btn-dark-blue {
  background-color: #042650 !important;
  border-color: #042650 !important;
  color: white !important;
}

.btn-dark-blue:hover {
  background-color: #06408a !important;
  border-color: #06408a !important;
  color: white !important;
}

/* Table Adjustments */
.row-col {
  flex: 1;
  text-align: left;
}

.row-data:first-child {
  margin-top: 10px;
}

/* Footer */
.footer {
  background-color: #051825;
  color: white;
  text-align: center;
  padding: 15px 0;
  width: 100%;
  /*position: fixed;
  bottom: 0;*/
}

/* Dans application.css ou un fichier SCSS */
th[data-sort-type] {
  cursor: pointer;
  position: relative; /* Pour positionner l'icône si besoin */
}

th[data-sort-type]:hover {
  background-color: #f8f9fa; /* Léger fond au survol */
}

/* Styles pour les icônes de tri (optionnel) */
.sort-icon {
  font-size: 0.8em;
  color: #6c757d; /* Couleur discrète */
}

th.sort-asc .sort-icon,
th.sort-desc .sort-icon {
 color: #000; /* Couleur plus visible pour l'icône active */
}

.tooltip.tooltip-large .tooltip-inner {
  max-width: 300px;
  white-space: normal;
}

/* Amélioration du menu déroulant Settings */
.collapse-icon {
  transition: transform 0.3s ease;
  font-size: 0.8em;
  color: #ccc;
}

.nav-link[aria-expanded="true"] .collapse-icon {
  transform: rotate(180deg);
}

/* Style pour les sous-menus */
.nav .collapse .nav-link {
  font-size: 0.9em;
  padding: 0.5rem 0.75rem;
  margin-left: 0.5rem;
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
}

.nav .collapse .nav-link:hover {
  border-left-color: #042650;
  background-color: rgba(4, 38, 80, 0.1);
}

/* Animation smooth pour le collapse */
.collapse {
  transition: all 0.3s ease;
}

/* Survol du menu principal */
.nav-link[data-bs-toggle="collapse"]:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}

/* Indicateur visuel pour les menus déroulants en mode collapsed */
.sidebar.collapsed .collapse-icon {
  display: none;
}

.sidebar.collapsed .nav-pills > li > .nav-link .me-2 {
  margin-right: 0 !important;
}

.sidebar.collapsed .nav-pills > li > .nav-link.active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: calc(100% - 0.75rem);
  margin-left: auto;
  margin-right: auto;
  padding-left: 0.6rem;
  padding-right: 0.6rem;
}

.sidebar.collapsed {
  overflow: visible;
}

.sidebar.collapsed .nav-pills > li {
  position: relative;
}

.sidebar.collapsed .nav-pills > li > .collapse,
.sidebar.collapsed .nav-pills > li > .collapsing {
  position: absolute;
  top: 0;
  left: calc(100% + 0.35rem);
  min-width: 220px;
  margin-left: 0 !important;
  padding: 0.4rem;
  background-color: #051825;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.6rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  z-index: 1080;
}

.sidebar.collapsed .nav-pills > li > .collapse:not(.show),
.sidebar.collapsed .nav-pills > li > .collapsing {
  display: none;
}

.sidebar.collapsed .nav-pills > li > .collapse.show {
  display: block;
}

.sidebar.collapsed .nav-pills > li > .collapse .nav-link span {
  display: inline;
}

.sidebar.collapsed .nav-pills > li > .collapse .nav-link .me-2 {
  margin-right: 0.5rem !important;
}

.sidebar.collapsed .nav-pills > li > .collapse .nav-link {
  margin-left: 0;
}

/* Custom badge colors for specific statuses */
.badge-paid {
  background-color: #28a745 !important;
  color: white;
}

.badge-cancelled {
  background-color: #6c757d !important;
  color: white;
}

.badge-overdue {
  background-color: #dc3545 !important;
  color: white;
}

.badge-recovery {
  background-color: #fd7e14 !important;
  color: white;
}

.badge-pending {
  background-color: #17a2b8 !important;
  color: white;
}

.badge-failed {
  background-color: #dc3545 !important;
  color: white;
}

.badge-expired {
  background-color: #343a40 !important;
  color: white;
}

.badge-paused {
  background-color: #6f42c1 !important;
  color: white;
}

/* Shared client UI blocks */
.client-section-card {
  border-radius: 0.9rem;
}

.client-kpi-strip .badge {
  font-weight: 500;
  padding: 0.45rem 0.7rem;
}

.action-center-item {
  border: 1px solid #e9ecef;
  border-radius: 0.75rem;
  background: #f8f9fb;
  padding: 0.7rem 0.9rem;
}

.client-list-card .card-body {
  padding-top: 1rem;
}

.mobile-node-card {
  background-color: #fff;
  border-color: #e9ecef !important;
}

.in-app-notifications-menu {
  min-width: 22rem;
  max-width: 24rem;
  max-height: 70vh;
  overflow-y: auto;
}

.client-empty-state {
  background-color: #f8f9fb;
  border-color: #e9ecef !important;
}

@media (max-width: 991.98px) {
  .client-section-card .card-header,
  .client-section-card .card-body {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .client-kpi-strip .badge {
    padding: 0.38rem 0.58rem;
    font-size: 0.74rem;
  }

  .action-center-item {
    padding: 0.65rem 0.75rem;
  }

  .action-center-item .btn {
    flex: 1 1 auto;
    min-width: 9rem;
  }

  .client-list-card .table td,
  .client-list-card .table th {
    white-space: nowrap;
    font-size: 0.84rem;
  }

  .mobile-node-card {
    padding: 0.75rem !important;
  }

  .client-empty-state {
    padding: 1rem !important;
    text-align: left;
  }

  .client-empty-state .d-flex {
    justify-content: flex-start !important;
  }

  .in-app-notifications-menu {
    min-width: min(22rem, calc(100vw - 2rem));
    max-width: calc(100vw - 1rem);
    max-height: 65vh;
  }

  .in-app-notifications-menu .list-group-item .btn {
    width: 100%;
  }

  .table-responsive {
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 767.98px) {
  #sidebar {
    flex: 0 0 100%;
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto;
    overflow-y: visible;
    padding-top: 64px;
    padding-bottom: 0.8rem;
  }

  #sidebar + .main-content,
  #sidebar.collapsed + .main-content,
  #sidebar + main,
  #sidebar.collapsed + main {
    flex: 1 0 100%;
    width: 100% !important;
  }

  #sidebar.collapsed {
    width: 100% !important;
    padding-bottom: 0.35rem;
  }

  #sidebar #toggleSidebar {
    display: block;
    width: calc(100% - 1rem) !important;
    margin: 0.45rem auto !important;
    border-radius: 999px;
  }

  #sidebar.collapsed > hr,
  #sidebar.collapsed > ul {
    display: none;
  }

  #sidebar:not(.collapsed) {
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    padding-bottom: 0.65rem;
  }

  .main-content {
    padding-top: 0.85rem;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
}
.head-navbar {
    background-color: #051825;
    height: 80px;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.head-brand-text {
    max-height: 50px;
    width: auto;
}

.head-brand-mark {
    display: none;
    width: 38px;
    height: 38px;
    object-fit: cover;
    border-radius: 50%;
}

.head-nav-link {
    color: white !important;
}

.head-nav-link:hover {
    text-decoration: underline;
}

.head-help-link {
    font-size: 0.95rem;
}

@media (max-width: 767.98px) {
    .head-navbar {
        height: 64px;
        padding: 0 12px;
        border-bottom-width: 0.25em !important;
    }

    .head-navbar .container-fluid {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .head-brand-text {
        display: none;
    }

    .head-brand-mark {
        display: inline-block;
    }

    .head-navbar .head-help-nav {
        display: flex;
        margin-right: 0.35rem !important;
    }

    .head-help-link {
        padding: 0.2rem 0.45rem;
        border: 1px solid rgba(255, 255, 255, 0.35);
        border-radius: 999px;
        text-decoration: none !important;
        font-size: 0.84rem;
        line-height: 1;
    }

    .head-help-link i {
        font-size: 0.88rem;
    }

    .head-help-link .head-help-label {
        display: none;
    }

    .head-navbar .dropdown > a {
        font-size: 0.92rem;
    }
}
html,
body {
  height: 100%;
}

.form-signin {
  max-width: 330px;
  padding: 1rem;
}

.form-signin .form-floating:focus-within {
  z-index: 2;
}

.form-signin input[type="email"] {
  margin-bottom: -1px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
  margin-bottom: 10px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

 /* Styles pour la section principale */

 html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

 main {
  padding-top: 100px; /* Pour compenser la navbar fixe */
  flex-grow: 1;
}

 .main-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding-top: 80px; /* Pour éviter que la navbar ne masque le contenu */
  padding-left: 20px;
  padding-right: 20px;
  transition: all 0.3s ease-in-out;
}

.flex-grow-1 {
  flex-grow: 1;
}

.site-footer-wrapper {
  width: 100%;
}

.site-footer {
  width: 100%;
}

 body {
    background-color: #313a46 !important;
 }
 
 .navbar-custom {
   position: fixed;
   top:0;
   right:0;
 }

 .table-container {
  max-width: 100%;
  margin: auto;
}

.row-header, .row-data {
  display: flex;
  justify-content: space-between;
  padding: 10px 15px;
}

.row-data {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px; /* Espacement entre les lignes */
  border: 1px solid rgba(0, 0, 0, 0.175);
}

.badge-paid         { background-color: #198754; color: white; }  /* Vert */
.badge-cancelled    { background-color: #6c757d; color: white; }  /* Gris */
.badge-overdue      { background-color: #dc3545; color: white; }  /* Rouge */
.badge-recovery     { background-color: #8b0000; color: white; }  /* Rouge foncé */
.badge-pending      { background-color: #ffc107; color: black; }  /* Jaune */
.badge-failed       { background-color: #ff4d4d; color: white; }  /* Rouge clair */
.badge-expired      { background-color: #212529; color: white; }  /* Noir */
.badge-paused       { background-color: #0d6efd; color: white; }  /* Bleu */

.recaptcha-wrap {
  transform: scale(0.90);          /* ajuste: 0.85, 0.8, etc */
  transform-origin: left top;      /* important sinon ça déborde */
  width: 100%;
}

/* Réserve la hauteur “réelle” pour éviter le chevauchement après scale */
.recaptcha-wrap {
  height: calc(78px * 0.90);       /* v2 checkbox = ~78px de haut */
}
