/* ==========================================================================
   IGPNBase - Feuille de style commune
   Esthétique volontairement datée 2015-2018 : dégradés, angles légers,
   ombres discrètes, libellés en majuscules et palette bleu institutionnel.
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  font-family: "Segoe UI", "Trebuchet MS", Tahoma, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: #24384c;
  background-color: #e8eef4;
  background-image: linear-gradient(to bottom, #f5f9fc 0px, #e8eef4 240px, #e2eaf1 100%);
  background-repeat: no-repeat;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 600;
  color: #1c3f5d;
}

p {
  margin: 0 0 10px;
}

a {
  color: #2e6c9e;
  text-decoration: none;
}

a:hover {
  color: #17476c;
  text-decoration: underline;
}

img {
  border: 0;
}

[hidden] {
  display: none !important;
}

button,
input {
  font-family: inherit;
}

button:focus,
input:focus,
a:focus {
  outline: none;
}

/* --------------------------------------------------------------------------
   Barre de navigation haute
   -------------------------------------------------------------------------- */

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  height: 64px;
  background-color: #cfe5f8;
  background-image: linear-gradient(to bottom, #eef7ff 0%, #cbe3f8 48%, #add2ee 100%);
  border-bottom: 1px solid #7fa8ca;
  box-shadow: 0 2px 3px rgba(20, 55, 88, 0.18);
}

.topbar-inner {
  display: flex;
  align-items: center;
  max-width: 1180px;
  height: 64px;
  margin: 0 auto;
  padding: 0 16px;
}

.brand {
  display: flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  display: block;
  width: auto;
  height: 48px;
}

.brand-divider {
  display: block;
  width: 1px;
  height: 34px;
  margin: 0 12px;
  background: #8cb2d1;
  border-right: 1px solid #f6fbff;
}

.brand-text {
  display: block;
  line-height: 1.15;
}

.brand-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #123b5d;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

.brand-sub {
  display: block;
  font-size: 9px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: #4d7190;
}

.topbar-right {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.topbar-note {
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #486d8b;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Bouton Menu + icône hamburger */

.menu-toggle {
  display: inline-flex;
  align-items: center;
  height: 34px;
  margin-right: 12px;
  padding: 0 12px 0 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #1c4768;
  cursor: pointer;
  background-color: #d8ebfb;
  background-image: linear-gradient(to bottom, #f2faff, #c3dff4);
  border: 1px solid #8db3d2;
  border-radius: 3px;
  box-shadow: inset 0 1px 0 #ffffff, 0 1px 1px rgba(0, 0, 0, 0.08);
  text-shadow: 0 1px 0 #ffffff;
}

.menu-toggle:hover {
  background-image: linear-gradient(to bottom, #ffffff, #d3e9f9);
}

.menu-toggle:active,
.menu-toggle.open {
  background-image: linear-gradient(to bottom, #c3dff4, #e8f5ff);
  box-shadow: inset 0 1px 2px rgba(20, 60, 95, 0.22);
}

.hamburger {
  display: block;
  width: 14px;
  margin-right: 8px;
}

.hamburger span {
  display: block;
  height: 2px;
  margin: 3px 0;
  background: #1c4768;
  border-radius: 1px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* --------------------------------------------------------------------------
   Profil et menu déroulant
   -------------------------------------------------------------------------- */

.profile {
  position: relative;
}

.profile-btn {
  display: flex;
  align-items: center;
  padding: 4px 6px;
  color: inherit;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
}

.profile-btn:hover,
.profile-btn.open {
  background: rgba(255, 255, 255, 0.55);
  border-color: #9fc0dc;
}

.profile-meta {
  margin-right: 8px;
  line-height: 1.15;
  text-align: right;
}

.profile-name {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #193f5f;
}

.profile-rank {
  display: block;
  font-size: 10px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #4f7290;
}

.avatar {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
  text-transform: uppercase;
  background-color: #3f6f95;
  background-image: linear-gradient(to bottom, #5c8db3, #2f5c80);
  border: 2px solid #fdfefe;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(15, 45, 70, 0.35);
}

.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-sm {
  width: 32px;
  height: 32px;
  font-size: 11px;
  border-width: 1px;
}

.avatar-lg {
  width: 86px;
  height: 86px;
  font-size: 26px;
  border-width: 3px;
  box-shadow: 0 1px 4px rgba(15, 45, 70, 0.3);
}

.caret {
  width: 0;
  height: 0;
  margin-left: 8px;
  border-top: 5px solid #2a557a;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
}

.profile-menu {
  position: absolute;
  top: 50px;
  right: 0;
  z-index: 120;
  display: none;
  width: 244px;
  background: #ffffff;
  border: 1px solid #a8bfd3;
  border-radius: 3px;
  box-shadow: 0 5px 14px rgba(15, 45, 72, 0.28);
}

.profile-menu.open {
  display: block;
}

.profile-menu-head {
  display: flex;
  align-items: center;
  padding: 12px;
  background-color: #f2f8fc;
  background-image: linear-gradient(to bottom, #f9fcff, #e8f1f9);
  border-bottom: 1px solid #d5e1eb;
}

.profile-menu-head .avatar {
  margin-right: 10px;
}

.profile-menu-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  color: #1c3e5b;
}

.profile-menu-sub {
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #5a7b96;
}

.profile-menu-list {
  padding: 5px 0;
}

.profile-menu-item {
  display: block;
  width: 100%;
  padding: 9px 14px;
  font-size: 13px;
  color: #2b4761;
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
  border-left: 3px solid transparent;
}

.profile-menu-item:hover {
  color: #143c5c;
  background: #eaf3fa;
  border-left-color: #4a88b8;
}

.profile-menu-item.danger {
  color: #983232;
}

.profile-menu-item.danger:hover {
  background: #fbecec;
  border-left-color: #b84848;
}

.profile-menu-sep {
  height: 1px;
  margin: 4px 0;
  background: #e0e8ef;
}

/* --------------------------------------------------------------------------
   Menu latéral gauche
   -------------------------------------------------------------------------- */

.sidebar {
  position: fixed;
  top: 64px;
  bottom: 0;
  left: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  width: 258px;
  overflow-y: auto;
  background: #f8fbfd;
  border-right: 1px solid #aac0d3;
  box-shadow: 3px 0 7px rgba(20, 55, 85, 0.16);
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.22, 0.75, 0.3, 1);
}

.sidebar-head,
.sidebar-section,
.sidebar-foot {
  flex: 0 0 auto;
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-head {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #356082;
  background-color: #e8f2fa;
  background-image: linear-gradient(to bottom, #eef6fc, #dceaf6);
  border-bottom: 1px solid #c9daea;
  text-shadow: 0 1px 0 #ffffff;
}

.sidebar-section {
  padding: 10px 0 4px;
}

.sidebar-section-title {
  padding: 0 16px 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #7d95aa;
}

.sidebar-link {
  display: block;
  width: 100%;
  padding: 10px 16px;
  font-size: 13px;
  color: #2b4861;
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
  border-left: 3px solid transparent;
}

.sidebar-link:hover {
  color: #123c5c;
  background: #ecf5fb;
  border-left-color: #79a9cb;
}

.sidebar-link.active {
  font-weight: 600;
  color: #123c5c;
  background: #dfeef9;
  border-left-color: #2f7cb0;
  box-shadow: inset 0 1px 0 #ffffff;
}

.sidebar-empty {
  padding: 8px 16px 14px;
  font-size: 11px;
  font-style: italic;
  color: #8a9eae;
}

.sidebar-foot {
  margin-top: auto;
  padding: 16px;
  font-size: 10px;
  color: #8ba0b2;
  border-top: 1px solid #e0e8ef;
}

.overlay {
  position: fixed;
  top: 64px;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 80;
  background: rgba(14, 42, 66, 0.38);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.overlay.open {
  opacity: 1;
  visibility: visible;
}

/* --------------------------------------------------------------------------
   Contenu de page
   -------------------------------------------------------------------------- */

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 90px 18px 48px;
}

body.has-topbar {
  padding-top: 0;
}

.page-head {
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #cddae6;
}

.page-title {
  font-size: 22px;
  font-weight: 600;
  color: #193f5f;
}

.page-sub {
  margin: 3px 0 0;
  font-size: 12px;
  color: #6c8499;
}

.panel {
  margin-bottom: 18px;
  background: #ffffff;
  border: 1px solid #c3d2df;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(20, 50, 80, 0.06);
}

.panel-head {
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #2d5a7c;
  background-color: #eef5fa;
  background-image: linear-gradient(to bottom, #fbfdff, #eaf2f9);
  border-bottom: 1px solid #d2dfe9;
  border-radius: 2px 2px 0 0;
  text-shadow: 0 1px 0 #ffffff;
}

.panel-body {
  padding: 16px;
}

.panel-body-flush {
  padding: 0;
}

.layout-columns {
  display: flex;
  align-items: stretch;
  margin: 0 -9px;
}

.col {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 0 9px;
}

.col > .panel {
  flex: 1 1 auto;
}

/* --------------------------------------------------------------------------
   Tableaux d'informations
   -------------------------------------------------------------------------- */

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table th,
.info-table td {
  padding: 8px 10px;
  font-size: 13px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e6edf3;
}

.info-table th {
  width: 38%;
  font-size: 12px;
  font-weight: 600;
  color: #5b7488;
  background: #f9fbfd;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: 0;
}

.account-summary {
  display: flex;
  align-items: center;
}

.account-summary .avatar {
  margin-right: 16px;
}

.account-name {
  font-size: 18px;
  font-weight: 600;
  color: #1e405e;
}

.account-rank {
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #5e7f99;
}

.account-login {
  margin-top: 2px;
  font-size: 12px;
  color: #7890a3;
}

.badge {
  display: inline-block;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #2b6288;
  background: #e7f2fa;
  border: 1px solid #a9c4d9;
  border-radius: 2px;
}

.badge-green {
  color: #2e6139;
  background: #edf8ef;
  border-color: #b7dbbf;
}

.badge-red {
  color: #8c2c2c;
  background: #fceeee;
  border-color: #e3b4b4;
}

.access-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.access-list li {
  padding: 9px 10px;
  font-size: 13px;
  border-bottom: 1px solid #e6edf3;
}

.access-list li:last-child {
  border-bottom: 0;
}

.access-list .badge {
  float: right;
}

/* --------------------------------------------------------------------------
   État vide
   -------------------------------------------------------------------------- */

.empty-state {
  padding: 44px 16px;
  color: #778d9f;
  text-align: center;
}

.empty-state h3 {
  margin-bottom: 6px;
  font-size: 15px;
  color: #47657d;
}

.empty-state p {
  max-width: 440px;
  margin: 0 auto;
  font-size: 12px;
}

.empty-icon {
  position: relative;
  width: 48px;
  height: 40px;
  margin: 0 auto 12px;
  background: #f1f7fb;
  border: 2px solid #b8cbda;
  border-radius: 3px;
}

.empty-icon:before {
  position: absolute;
  top: -7px;
  left: 6px;
  width: 18px;
  height: 7px;
  content: "";
  background: #e3eef7;
  border: 2px solid #b8cbda;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
}

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.18);
  cursor: pointer;
  background-color: #4b8dbe;
  background-image: linear-gradient(to bottom, #5fa4d4, #3c79a8);
  border: 1px solid #2c668f;
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 1px 1px rgba(0, 0, 0, 0.08);
}

.btn:hover {
  text-decoration: none;
  background-image: linear-gradient(to bottom, #6fb2df, #4485b5);
}

.btn:active {
  background-image: linear-gradient(to bottom, #38719d, #5a9ccb);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

.btn[disabled] {
  cursor: default;
  opacity: 0.55;
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-default {
  color: #2c4b65;
  text-shadow: 0 1px 0 #ffffff;
  background-color: #e9f0f6;
  background-image: linear-gradient(to bottom, #fbfdff, #e3ebf2);
  border-color: #a8bccd;
}

.btn-default:hover {
  background-image: linear-gradient(to bottom, #ffffff, #eef4f9);
}

.btn-file {
  position: relative;
  overflow: hidden;
}

.btn-file input[type="file"] {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  font-size: 100px;
  cursor: pointer;
  opacity: 0;
}

/* --------------------------------------------------------------------------
   Champs de formulaire
   -------------------------------------------------------------------------- */

.field {
  display: block;
  margin-bottom: 14px;
}

.field-label {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: #4c6b84;
}

.field input[type="text"],
.field input[type="password"],
.field input[type="email"],
.field input[type="number"],
.field input[type="datetime-local"],
.field input[type="date"],
.field select {
  display: block;
  width: 100%;
  height: 36px;
  padding: 7px 9px;
  font-size: 13px;
  font-family: inherit;
  color: #22384b;
  background: #ffffff;
  border: 1px solid #b4c4d2;
  border-radius: 3px;
  box-shadow: inset 0 1px 2px rgba(30, 60, 90, 0.08);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.field select {
  appearance: auto;
}

.field input[type="text"]:focus,
.field input[type="password"]:focus,
.field input[type="email"]:focus,
.field input[type="number"]:focus,
.field input[type="datetime-local"]:focus,
.field input[type="date"]:focus,
.field select:focus {
  border-color: #5b95c2;
  box-shadow: inset 0 1px 2px rgba(30, 60, 90, 0.06), 0 0 0 2px rgba(91, 149, 194, 0.22);
}

.field input::placeholder {
  color: #a3b2c0;
}

.field-help {
  margin: 5px 0 0;
  font-size: 11px;
  color: #8498a9;
}

/* --------------------------------------------------------------------------
   Messages d'alerte
   -------------------------------------------------------------------------- */

.alert {
  margin-bottom: 14px;
  padding: 9px 11px;
  font-size: 12px;
  border: 1px solid transparent;
  border-radius: 3px;
}

.alert-error {
  color: #8c2626;
  background: #fceeee;
  border-color: #e3b4b4;
}

.alert-success {
  color: #2a6136;
  background: #edf8ef;
  border-color: #b7dbbf;
}

.alert-info {
  color: #2c5d80;
  background: #eef6fc;
  border-color: #bcd6e9;
}

/* --------------------------------------------------------------------------
   Page de connexion
   -------------------------------------------------------------------------- */

.login-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 64px);
  margin-top: 64px;
  padding: 36px 16px 30px;
}

.login-card {
  width: 100%;
  max-width: 392px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #b3c5d5;
  border-radius: 4px;
  box-shadow: 0 6px 20px rgba(18, 52, 82, 0.16), 0 1px 2px rgba(18, 52, 82, 0.1);
}

.login-head {
  padding: 15px 20px 14px;
  color: #ffffff;
  background-color: #3f7fae;
  background-image: linear-gradient(to bottom, #5b9ac9, #336d97);
  border-bottom: 1px solid #2a5d83;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.login-head-title {
  display: block;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.login-head-sub {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #d6e8f5;
}

.login-body {
  padding: 20px;
}

.login-help {
  margin: 14px 0 0;
  font-size: 11px;
  color: #8699a9;
  text-align: center;
}

.login-foot {
  margin-top: 16px;
  padding: 0 16px 26px;
  font-size: 11px;
  color: #8599aa;
  text-align: center;
}

.login-foot strong {
  color: #5e7a91;
}

/* --------------------------------------------------------------------------
   Fenêtre modale (paramètres)
   -------------------------------------------------------------------------- */

.modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 200;
  display: none;
  overflow-y: auto;
}

.modal.open {
  display: block;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(12, 36, 58, 0.5);
}

.modal-dialog {
  position: relative;
  width: 560px;
  max-width: calc(100% - 28px);
  margin: 80px auto 40px;
  background: #ffffff;
  border: 1px solid #9fb4c7;
  border-radius: 4px;
  box-shadow: 0 12px 34px rgba(8, 30, 50, 0.4);
  animation: modal-in 0.18s ease;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-head {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background-color: #e8f2f9;
  background-image: linear-gradient(to bottom, #f9fcff, #e1edf7);
  border-bottom: 1px solid #c3d4e3;
  border-radius: 3px 3px 0 0;
}

.modal-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #2b5a7e;
  text-shadow: 0 1px 0 #ffffff;
}

.modal-close {
  width: 24px;
  height: 24px;
  margin-left: auto;
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1;
  color: #4d6c85;
  cursor: pointer;
  background: #f3f8fc;
  border: 1px solid #b4c6d6;
  border-radius: 3px;
}

.modal-close:hover {
  color: #963636;
  background: #ffffff;
  border-color: #c9a2a2;
}

.modal-body {
  padding: 18px 20px 20px;
}

.settings-section {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid #e1e9f0;
}

.settings-section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.settings-section h3 {
  margin-bottom: 12px;
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #3a6384;
}

.photo-row {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.photo-row .avatar {
  margin-right: 16px;
}

.photo-actions {
  min-width: 0;
}

.photo-actions .hint {
  margin: 6px 0 0;
}

.hint {
  font-size: 11px;
  color: #8498a9;
}

/* --------------------------------------------------------------------------
   Notification basse
   -------------------------------------------------------------------------- */

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 300;
  max-width: 320px;
  padding: 10px 14px;
  font-size: 12px;
  color: #ffffff;
  background-color: #2f4f68;
  background-image: linear-gradient(to bottom, #3f637e, #2d4c65);
  border: 1px solid #1f3b51;
  border-radius: 3px;
  box-shadow: 0 4px 12px rgba(10, 30, 50, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.toast.show {
  opacity: 1;
  visibility: visible;
}

.toast.error {
  background-image: linear-gradient(to bottom, #9c3c3c, #7c2c2c);
  border-color: #662222;
}

/* --------------------------------------------------------------------------
   Tableaux de données et formulaires
   -------------------------------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th,
.data-table td {
  padding: 9px 12px;
  text-align: left;
  border-bottom: 1px solid #e3ecf3;
  vertical-align: middle;
  white-space: nowrap;
}

.data-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: #4c6b84;
  background: #f4f8fb;
  border-bottom: 1px solid #d5e2ec;
}

.data-table tbody tr:hover {
  background: #f7fbfe;
}

.table-empty {
  text-align: center !important;
  color: #8498a9;
  padding: 24px 12px !important;
}

.table-loading {
  padding: 18px 14px;
  color: #8498a9;
  font-size: 13px;
}

.table-note {
  font-size: 12px;
  color: #8498a9;
}

.row-actions {
  white-space: nowrap;
}

.row-actions > * {
  margin-right: 6px;
  vertical-align: middle;
}

.inline-select {
  height: 28px;
  padding: 3px 6px;
  font-size: 12px;
  font-family: inherit;
  border: 1px solid #b4c4d2;
  border-radius: 3px;
  background: #fff;
  color: #22384b;
  max-width: 170px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-xs {
  padding: 4px 9px;
  font-size: 11px;
}

.btn-danger {
  background-image: linear-gradient(to bottom, #d66a5a, #b94a3c);
  border-color: #9c3a2e;
}

.btn-danger:hover {
  filter: brightness(1.06);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 16px;
}

.field-full {
  grid-column: 1 / -1;
}

.modal-wide .modal-dialog {
  width: 680px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.gav-form {
  margin-bottom: 6px;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid #e3ecf3;
}

.admin-tabs .btn-primary {
  margin-left: auto;
}

.personne-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: #f7fbfe;
  border: 1px solid #dbe7f0;
  border-radius: 5px;
  margin-bottom: 10px;
}

.personne-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.personne-name {
  font-size: 15px;
  font-weight: 700;
  color: #1d3550;
}

.personne-details {
  font-size: 12px;
  color: #5d7690;
}

.gav-form .btn {
  margin-top: 14px;
}

/* --------------------------------------------------------------------------
   Adaptations écran étroit
   -------------------------------------------------------------------------- */

@media (max-width: 820px) {
  .layout-columns {
    display: block;
    margin: 0;
  }

  .col {
    padding: 0;
  }

  .brand-sub,
  .topbar-note,
  .profile-meta {
    display: none;
  }

  .page {
    padding-right: 12px;
    padding-left: 12px;
  }
}

@media (max-width: 520px) {
  .brand-divider {
    display: none;
  }

  .brand img {
    height: 42px;
  }

  .brand-title {
    font-size: 14px;
  }

  .topbar-inner {
    padding: 0 10px;
  }

  .menu-toggle {
    padding: 0 9px 0 7px;
  }

  .modal-dialog {
    margin-top: 28px;
  }

  .photo-row {
    align-items: flex-start;
  }
}
