@font-face {
  font-family: 'Josefin Sans';
  font-style: normal;
  font-weight: 400;
  src: url("JosefinSans-Regular.ttf") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --main-bg-color: #269a8e;
  --main-button: #0b4479;
  --navbar-bg: var(--main-bg-color);
  --navbar-hover: rgba(255, 255, 255, 0.15);
  --navbar-active: rgba(255, 255, 255, 0.22);
  --navbar-accent: #fff;
}
/* rgb(39,52,116) */

html {
  width: 100%;
  text-align: center;
}

body {
  margin: auto;
  font-family: Verdana;
  font-size: 11pt;
}

/* === Navbar principale === */
.navbar {
  width: 100%;
  background: var(--navbar-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 48px;
  box-sizing: border-box;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-item {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10pt;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-item:hover {
  color: var(--navbar-accent);
  background: var(--navbar-hover);
}

.nav-item.nav-active {
  color: var(--navbar-accent);
  background: var(--navbar-active);
  box-shadow: inset 0 -3px 0 0 var(--navbar-accent);
}

.nav-item .fa {
  font-size: 14px;
}

.nav-chevron {
  font-size: 8px !important;
  margin-left: 2px;
  opacity: 0.6;
  transition: transform 0.2s ease;
}

.nav-dolibarr {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px 0 0 6px;
  margin-right: 4px;
  padding-right: 16px;
}
.nav-dolibarr:hover {
  color: var(--navbar-accent);
  background: var(--navbar-hover);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 6px 0;
  z-index: 200;
  animation: navDropdownFadeIn 0.15s ease;
}

@keyframes navDropdownFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-dropdown-content a {
  color: #333;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10pt;
  text-decoration: none;
  transition: all 0.15s ease;
}

.nav-dropdown-content a:hover {
  background: #e0f2f1;
  color: var(--main-bg-color);
}

.nav-dropdown-content a .fa {
  width: 18px;
  text-align: center;
  color: var(--main-bg-color);
  font-size: 13px;
}

.nav-dropdown:hover .nav-dropdown-content {
  display: block;
}

.nav-dropdown:hover .nav-chevron {
  transform: rotate(180deg);
}

/* User section */
.nav-user {
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10pt;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.nav-user .fa {
  font-size: 16px;
}

/* User menu dropdown */
.nav-user-wrapper {
  position: relative;
}

.nav-user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 220px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 12px;
  z-index: 200;
  animation: navDropdownFadeIn 0.15s ease;
}

.nav-user-dropdown-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-user-dropdown-item label {
  font-size: 9pt;
  font-weight: 600;
  color: #555;
  text-align: left;
}

.nav-user-dropdown-version {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 8pt;
  color: #aaa;
  margin-top: 8px;
  border-top: 1px solid #eee;
  padding-top: 6px;
}
.nav-user-changelog-link {
  cursor: pointer;
  color: #888;
  transition: color 0.2s;
}
.nav-user-changelog-link:hover {
  color: var(--main-bg-color);
}

.nav-user-color-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-user-color-row input[type="color"] {
  width: 40px;
  height: 32px;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  padding: 2px;
}

.nav-user-btn-reset {
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  color: #555;
  font-size: 12px;
  transition: all 0.2s ease;
}

.nav-user-btn-reset:hover {
  background: #e0e0e0;
  color: #333;
}

/* ========== NOTIFICATIONS DOLIMIS (cloche de la navbar) ========== */
.nav-notif-wrapper {
  position: relative;
}
.nav-notif-btn {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  border: none;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}
.nav-notif-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.nav-notif-active .fa-bell {
  color: #ffd54f;
}
.nav-notif-badge {
  position: absolute;
  top: 1px;
  right: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  box-sizing: border-box;
  border-radius: 8px;
  background: #e53935;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}
.nav-notif-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 360px;
  max-width: calc(100vw - 20px);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 200;
  animation: navDropdownFadeIn 0.15s ease;
  text-align: left;
  color: #333;
  overflow: hidden;
}
.nav-notif-head,
.nav-notif-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  font-size: 9pt;
}
.nav-notif-head {
  border-bottom: 1px solid #eee;
}
.nav-notif-foot {
  border-top: 1px solid #eee;
  justify-content: flex-end;
}
.nav-notif-title {
  font-weight: 600;
  color: #555;
}
.nav-notif-title .fa {
  color: var(--main-bg-color);
  margin-right: 4px;
}
.nav-notif-link {
  color: var(--main-bg-color);
  text-decoration: none;
  font-size: 8.5pt;
}
.nav-notif-link:hover {
  text-decoration: underline;
}
.nav-notif-list {
  max-height: 420px;
  overflow-y: auto;
}
.nav-notif-empty {
  padding: 18px 12px;
  color: #999;
  font-size: 9pt;
  text-align: center;
}
.nav-notif-item {
  display: flex;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid #f3f3f3;
  font-size: 9pt;
  border-left: 3px solid transparent;
}
.nav-notif-item:last-child {
  border-bottom: none;
}
.nav-notif-clickable {
  cursor: pointer;
}
.nav-notif-clickable:hover {
  background: #f5faf9;
}
.nav-notif-unread {
  background: #f1f8f7;
  border-left-color: var(--main-bg-color);
}
.nav-notif-icon {
  width: 18px;
  text-align: center;
  margin-top: 2px;
  color: #5c6bc0;
}
.nav-notif-succes .nav-notif-icon { color: #2e7d52; }
.nav-notif-alerte .nav-notif-icon { color: #e65100; }
.nav-notif-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}
.nav-notif-item-title {
  font-weight: 600;
  color: #222;
}
.nav-notif-unread .nav-notif-item-title::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--main-bg-color);
  vertical-align: middle;
}
.nav-notif-item-text {
  color: #555;
  line-height: 1.35;
  word-break: break-word;
}
.nav-notif-item-date {
  color: #999;
  font-size: 8pt;
}

/* ========== POPUPS DE NOTIFICATION (coin haut droit, empilées, fondu) ========== */
/* z-index au-dessus des modales (.modal-mask 9999) mais sous la modale de mise à jour. */
.notif-toasts {
  position: fixed;
  top: 58px;
  right: 16px;
  z-index: 10050;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 320px;
  max-width: calc(100vw - 32px);
  pointer-events: none;
  text-align: left;
}
.notif-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff;
  border-radius: 8px;
  border-left: 4px solid var(--main-bg-color);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  padding: 10px 8px 10px 12px;
  cursor: pointer;
  font-size: 10pt;
  /* Glisser à droite / à gauche pour fermer : le navigateur garde le défilement vertical,
     le geste horizontal revient à la popup ; pas de sélection de texte pendant le geste. */
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.notif-toast:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}
.notif-toast-succes { border-left-color: #2e7d52; }
.notif-toast-alerte { border-left-color: #e65100; }
.notif-toast-icon {
  color: var(--main-bg-color);
  font-size: 14px;
  margin-top: 2px;
}
.notif-toast-succes .notif-toast-icon { color: #2e7d52; }
.notif-toast-alerte .notif-toast-icon { color: #e65100; }
.notif-toast-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.notif-toast-title {
  font-weight: 600;
  color: #222;
}
.notif-toast-text {
  color: #555;
  font-size: 9pt;
  line-height: 1.35;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Deux classes : plus spécifique que les règles génériques de bouton */
.notif-toast .notif-toast-close {
  background: none;
  border: none;
  color: #999;
  font-size: 16px;
  line-height: 1;
  padding: 0 2px;
  margin: 0;
  cursor: pointer;
}
.notif-toast .notif-toast-close:hover { color: #333; }
/* Arrivée : glisse depuis la droite ; départ : fondu ; les autres se replacent en douceur */
.notif-toast-enter-active { transition: opacity 0.3s ease, transform 0.3s ease; }
.notif-toast-leave-active { transition: opacity 0.8s ease; }
.notif-toast-enter, .notif-toast-leave-to { opacity: 0; }
.notif-toast-enter { transform: translateX(24px); }
.notif-toast-move { transition: transform 0.3s ease; }

.nav-btn-logout {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
  border: none;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.nav-btn-logout:hover {
  background: rgba(220, 50, 50, 0.8);
  color: #fff;
}

/* Legacy .menu class kept for compatibility */
.menu {
  height: 50px;
  width: 100%;
  background: var(--main-bg-color);
  display: inline-flex;
  vertical-align: middle;
}
.menu a {
  color: White;
  margin: auto;
}

h1 {
  padding: 15px;
  vertical-align: center;
  text-align: center;
  margin: auto;
}

.pointer:hover {
  cursor: pointer;
}

.left {
  text-align: left;
}
.right {
  text-align: right;
}
.center {
  text-align: center;
}

.alignleft {
	float: left;
}
.alignright {
	float: right;
}

.normal_list {
  font-weight: normal;
  font-size: 10pt;
  padding-left: 20px;
}
.barre {
  text-decoration: line-through;
}

.bold {
  font-weight: bold;
}
.bold_hover:hover {
  font-weight: bold;
}
.ita_hover:hover {
  font-style: italic;
}
.warning {
  font-weight: bold;
  color: rgb(178, 34, 34);
}
.warning_hover:hover {
  font-weight: bold;
  color: rgb(178, 34, 34);
}
.ita-green {
  font-weight: italic;
  color: rgb(34, 139, 34);
}
.green_hover:hover {
  font-weight: bold;
  color: rgb(34, 139, 34);
}
.blue_hover:hover {
  font-weight: bold;
  color: rgb(110, 143, 239);
}

.space-top-bottom {
  padding-top: 10px;
  padding-bottom: 10px;
}

.multiselect {
  display: inline-block;
  width: auto;
  margin: 2px;
}

.block {
  display: block;
}

.inline {
  display: inline-block;
  vertical-align: middle;
}

.inline-left {
  display: inline;
  vertical-align: top;
}

.filter_line {
  margin: 10px auto 10px auto;
}

.tier {
  margin-top:20px;
}

.tier .multiselect {
  display: block;
}

/* Style the tab */
.tab {
  overflow: hidden;
  text-align: center;
  margin-bottom: 10px;
}

/* Style the buttons that are used to open the tab content */
.tab button {
  background-color: inherit;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 10px;
  transition: 0.3s;
  border: 1px solid #ccc;
  background-color: #f1f1f1;
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: #ddd;
}

/* Create an active/current tablink class */
.tab button.active, .tab button:active {
  background-color: #ccc;
  background: var(--main-button);
  color: White;
}

.line-alternate {
  background-color: AliceBlue;
}

a {
  color: rgb(39,52,116);
}

a:link {
  text-decoration: none;
}

.clickable {
  cursor: pointer;
}

.warning {
  color: red;
}

.product-img {
  max-width: 100px;
  max-height: 100px;
  vertical-align: middle;
  display: inline-block;
}

table {
  border-collapse: collapse;
  width: 100%;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

thead {
  overflow-y: auto;
  height: 30px;
  position: sticky;
  top: 0;
  padding: 10px;
  background-color: White;
}

thead th, thead th a {
  background: var(--main-bg-color);
  color: White;
}

thead th {
  padding: 10px;
}

.modal-mask {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: table;
  animation: modalMaskIn 0.25s ease;
}
/* La modale « Mise à jour disponible » doit toujours passer au premier plan,
   au-dessus de n'importe quelle popup de l'application (avenant, etc.). */
.modal-mask.update-mask {
  z-index: 2147483000;
}
@keyframes modalMaskIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-mask-top {
  z-index: 9999;
}

.modal-wrapper {
  display: table-cell;
  vertical-align: middle;
}

.modal-container {
  position: relative;
  overflow-y: auto;
  width: 600px;
  max-height: 90vh;
  margin: 10px auto 10px auto;
  padding: 24px 28px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  animation: modalContainerIn 0.3s ease;
}
@keyframes modalContainerIn {
  from { opacity: 0; transform: scale(0.95) translateY(-10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-container-full {
  width: 90vw;
  height: 90vh;
}
.modal-container-large {
  width: 1000px;
}

.modal-container-full-screen {
  overflow-y: auto;
  width: 100vw;
  height: 100vh;
  margin: 0;
  /*padding: 20px 30px;*/
  background-color: #fff;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.33);
  transition: all 0.3s ease;
  /*font-family: Helvetica, Arial, sans-serif;*/
}

.modal-container-full-screen iframe {
  padding: 0;
}



.model-new-ticket {
  width: 1000px;
}

.modal-header h3 {
  margin-top: 0;
  color: #42b983;
}

.modal-body {
  margin: 16px 0;
  font-size: 10pt;
  color: #444;
  line-height: 1.5;
}

.modal-body-fullscreen {
  margin: 50px 0;
  font-size: 16pt;
}
.modal-body-fullscreen button {
  margin: 50px;
  font-size: 16pt;
}


.modal-default-button {
  margin: 10px;
  float: right;
}

/* Bouton fermeture (×) en haut à droite */
span.modal-default-button {
  position: absolute;
  top: 12px;
  right: 12px;
  margin: 0;
  float: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f0f2f5;
  color: #666;
  font-size: 11pt;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
span.modal-default-button:hover {
  background: #e0e3e8;
  color: #333;
}

.flex-right {
  display: flex;
  justify-content: flex-end;
}
.modal-body .flex-right {
  margin-top: 10px;
}

.modal-default-button-hidden {
  width: 100px;
  height: 80px;
  position:absolute;
  top:0;
  right: 50px;
  z-index:999 !important;
}

.modal-button-list {
  margin: 10px;
  float: left;
}

/* === Modal message === */
.modal-message {
  width: 420px;
  padding: 24px 28px 20px;
}
.modal-message .modal-body {
  white-space: pre-line;
  word-break: break-word;
}
.modal-message-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.modal-message-header h3 {
  margin: 0;
  font-size: 13pt;
  font-weight: 700;
  color: #333;
}
.modal-message-icon {
  font-size: 16pt;
  color: var(--main-bg-color);
}
.modal-message-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}
.modal-message-btn {
  border: none;
  border-radius: 6px;
  padding: 8px 24px;
  font-size: 10pt;
  font-weight: 600;
  cursor: pointer;
  background: var(--main-bg-color);
  color: white;
  transition: all 0.2s ease;
}
.modal-message-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

/*
 * The following styles are auto-applied to elements with
 * transition="modal" when their visibility is toggled
 * by Vue.js.
 *
 * You can easily play with the modal transition by editing
 * these styles.
 */

.modal-enter {
  opacity: 0;
}

.modal-leave-active {
  opacity: 0;
}


.modal-enter .modal-container,
.modal-leave-active .modal-container {
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}


.tabs_ul {
  display: inline-block;
  margin: 0 0 -7px 0;
  padding:0;
  list-style-type: none;
}

.tabs {
  float: left;
  border: 1px solid #DAE0E7;
  background: #F9F9F9;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}

.tabs, .tabs a {
  transition: all .25s;
}

.tabs a {
  display: inline-block;
}

.tabs a:first-child {
  padding: 5px;
  white-space: nowrap;
}

.tabs.tabsClosed, .tabs.tabsClosed a:first-child {
  margin-right: 0;
  border-width: 0;
}

.tabs.tabsClosed {
  width: 0 !important;/* use important because we need to set the width of tabss in javascript in order to be able to animate them to 0 */
}

.tabs.tabsClosed a {
  opacity: 0;
}

.tabs:hover {
  background: #fff;
}

.tabs.tabSelected {
  border-bottom: none;
  background: #fff;
  font-weight: bold;
}

.closeTab {
  width: 16px;
  height: 16px;
  margin: 0 14px 0 12px;
  padding: 3px;
  border-radius: 16px;
  line-height: 16px;
  text-align: center;
}

.closeTab:hover {
  background: #DAE0E7;
}

.profileUserPhoto {
  width: 20px;
  height: 20px;
  overflow: hidden;
  border-radius: 10px;
  display: inline-block;
  vertical-align: middle;
}

.profileUserPhoto img {
  width: 20px;
}

.fa {
  vertical-align: middle;
}

/* Legacy dropdown styles (kept for other usages) */
.dropdown {
  position: relative;
  display: inline-block;
  margin: auto;
  padding: 10px;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  top: 100%;
  left: 0;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:hover .dropbtn {
  background-color: #3e8e41;
}

[v-cloak] {
  display: none !important;
}

/* === Login page === */
.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--main-bg-color) 0%, #1a6b62 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.login-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  padding: 40px 36px 32px;
  width: 360px;
  max-width: 90vw;
  animation: navDropdownFadeIn 0.3s ease;
}

.login-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 28px;
}

.login-icon {
  font-size: 36px;
  color: var(--main-bg-color);
  margin-bottom: 10px;
}

.login-title {
  margin: 0;
  padding: 0;
  font-size: 22pt;
  font-weight: 700;
  color: #333;
}

.login-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 10pt;
  margin-bottom: 16px;
  text-align: center;
}

.login-field {
  position: relative;
  margin-bottom: 16px;
}

.login-field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 14px;
}

.login-field input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 11pt;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  outline: none;
}

.login-field input:focus {
  border-color: var(--main-bg-color);
  box-shadow: 0 0 0 3px rgba(38, 154, 142, 0.15);
}

.login-btn {
  width: 100%;
  padding: 12px;
  background: var(--main-bg-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 11pt;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  margin-top: 4px;
}

.login-btn:hover {
  background: #1f8377;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.login-spinner {
  text-align: center;
  padding: 12px;
  font-size: 18px;
  color: var(--main-bg-color);
}

.login-card-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.login-loading-spinner {
  font-size: 24px;
  color: var(--main-bg-color);
}

/* === Modal mise à jour === */
.update-modal {
  width: 400px;
  text-align: center;
  border-radius: 12px;
  padding: 30px;
}
.update-modal-icon {
  font-size: 36px;
  color: var(--main-bg-color);
  margin-bottom: 12px;
}
.update-modal h3 {
  margin: 0 0 12px 0;
  font-size: 14pt;
  color: #333;
}
.update-modal p {
  margin: 0 0 8px 0;
  font-size: 10pt;
  color: #666;
}
.update-modal-btn {
  margin-top: 18px;
  padding: 10px 24px;
  background: var(--main-bg-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 11pt;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s;
}
.update-modal-btn:hover {
  filter: brightness(1.1);
}
.update-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}
.update-modal-actions .update-modal-btn {
  margin-top: 0;
}
.update-modal-btn-later {
  padding: 10px 24px;
  background: #f0f0f0;
  color: #555;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 11pt;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.update-modal-btn-later:hover {
  background: #e0e0e0;
}
.update-modal-warning {
  background: #fff3e0;
  color: #e65100;
  border: 1px solid #ffcc80;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 9pt;
  font-weight: 600;
  margin-top: 8px;
}
.update-modal-warning .fa {
  margin-right: 4px;
}

/* === Modal changelog === */
.changelog-modal {
  width: 600px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
}
.changelog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
}
.changelog-header h3 {
  margin: 0;
  font-size: 13pt;
  color: #333;
}
.changelog-close {
  cursor: pointer;
  color: #999;
  font-size: 14px;
  padding: 4px;
}
.changelog-close:hover {
  color: #333;
}
.changelog-list {
  overflow-y: auto;
  padding: 12px 20px;
  flex: 1;
}
.changelog-item {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}
.changelog-item:last-child {
  border-bottom: none;
}
.changelog-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.changelog-hash {
  font-family: monospace;
  font-size: 8.5pt;
  color: var(--main-bg-color);
  background: #e8f5f3;
  padding: 2px 6px;
  border-radius: 4px;
}
.changelog-date {
  font-size: 8.5pt;
  color: #999;
}
.changelog-message {
  font-size: 10pt;
  color: #333;
  line-height: 1.4;
  white-space: pre-line;
}
.changelog-author {
  font-size: 8pt;
  color: #aaa;
  margin-top: 2px;
}
.changelog-loading {
  text-align: center;
  padding: 16px;
  color: #999;
  font-size: 10pt;
}
.changelog-error {
  text-align: center;
  padding: 16px;
  color: #d32f2f;
  font-size: 10pt;
}
.changelog-error .fa {
  margin-right: 6px;
}
.changelog-load-more {
  display: block;
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 9.5pt;
  color: #666;
  cursor: pointer;
  transition: background 0.2s;
}
.changelog-load-more:hover {
  background: #eee;
}
.changelog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
  border-top: 1px solid #eee;
  font-size: 8pt;
  color: #aaa;
}
.changelog-token-info .fa {
  margin-right: 4px;
}
.changelog-token-expired {
  color: #d32f2f;
  font-weight: 600;
}
.changelog-token-warning {
  color: #f57c00;
  font-weight: 600;
}
.changelog-token-ok {
  color: #999;
}

/* Bouton hamburger : caché sur desktop */
.nav-hamburger {
  display: none;
}

/* === RESPONSIVE TABLETTE + MOBILE === */
@media (max-width: 992px) {
  html {
    overflow-x: hidden;
  }
  body {
    margin: 0;
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  /* Navbar tablette : passer en mode hamburger */
  .navbar {
    flex-wrap: wrap;
    box-sizing: border-box;
    padding: 0 8px;
  }

  .nav-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    padding: 10px;
    cursor: pointer;
    border-radius: 6px;
  }
  .nav-hamburger:hover {
    background: var(--navbar-hover);
  }

  .nav-left {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding: 4px 0 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }
  .nav-left.nav-mobile-open {
    display: flex;
  }

  .nav-left .nav-item {
    width: 100%;
    padding: 10px 14px;
    box-sizing: border-box;
    border-radius: 4px;
  }

  .nav-dropdown {
    width: 100%;
  }
  .nav-dropdown > .nav-item {
    width: 100%;
    box-sizing: border-box;
  }
  .nav-dropdown-content {
    position: static;
    display: none;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    box-shadow: none;
    padding: 0;
    margin: 0 0 0 20px;
    animation: none;
  }
  .nav-dropdown:hover .nav-dropdown-content,
  .nav-dropdown:active .nav-dropdown-content,
  .nav-dropdown:focus-within .nav-dropdown-content {
    display: block;
  }
  .nav-dropdown-content a {
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 14px;
    font-size: 9.5pt;
  }
  .nav-dropdown-content a:hover {
    background: var(--navbar-hover);
    color: var(--navbar-accent);
  }
  .nav-dropdown-content a .fa {
    color: rgba(255, 255, 255, 0.7);
  }

  .nav-dolibarr {
    border-right: none;
    margin-right: 0;
    padding-right: 14px;
  }

  .nav-right {
    gap: 4px;
  }
  .nav-right .nav-label {
    display: none;
  }
  .nav-right .nav-chevron {
    display: none;
  }
}

/* Tablette tactile en paysage (ex. iPad 1024x768) : au-delà de 992px la barre
   de navigation redevient complète (voir bloc précédent) mais le nombre
   d'entrées de menu dépasse ce que 1024-1199px peuvent contenir sans
   retour à la ligne (débordement horizontal mesuré, audit responsive
   2026-10). Bascule en mode hamburger comme ci-dessus, UNIQUEMENT pour les
   écrans TACTILES (hover:none + pointer:coarse) afin de ne jamais changer
   l'affichage d'un PC à la souris, même en fenêtre réduite. */
@media (min-width: 993px) and (max-width: 1199px) and (hover: none) and (pointer: coarse) {
  .navbar {
    flex-wrap: wrap;
    box-sizing: border-box;
    padding: 0 8px;
  }

  .nav-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    padding: 10px;
    cursor: pointer;
    border-radius: 6px;
  }
  .nav-hamburger:hover {
    background: var(--navbar-hover);
  }

  .nav-left {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding: 4px 0 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }
  .nav-left.nav-mobile-open {
    display: flex;
  }

  .nav-left .nav-item {
    width: 100%;
    padding: 10px 14px;
    box-sizing: border-box;
    border-radius: 4px;
  }

  .nav-dropdown {
    width: 100%;
  }
  .nav-dropdown > .nav-item {
    width: 100%;
    box-sizing: border-box;
  }
  .nav-dropdown-content {
    position: static;
    display: none;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    box-shadow: none;
    padding: 0;
    margin: 0 0 0 20px;
    animation: none;
  }
  .nav-dropdown:hover .nav-dropdown-content,
  .nav-dropdown:active .nav-dropdown-content,
  .nav-dropdown:focus-within .nav-dropdown-content {
    display: block;
  }
  .nav-dropdown-content a {
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 14px;
    font-size: 9.5pt;
  }
  .nav-dropdown-content a:hover {
    background: var(--navbar-hover);
    color: var(--navbar-accent);
  }
  .nav-dropdown-content a .fa {
    color: rgba(255, 255, 255, 0.7);
  }

  .nav-dolibarr {
    border-right: none;
    margin-right: 0;
    padding-right: 14px;
  }

  .nav-right {
    gap: 4px;
  }
  .nav-right .nav-label {
    display: none;
  }
  .nav-right .nav-chevron {
    display: none;
  }
}

@media (max-width: 768px) {
  html {
    text-align: left;
  }
  .inline {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .navbar {
    min-height: 44px;
  }

  .nav-user .fa {
    font-size: 18px;
  }
}

/* ========== GAME ADMIN BUTTONS ========== */
.game-admin-delete-btn {
  background: none;
  border: none;
  color: #cc4444;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 9pt;
  opacity: 0.6;
  transition: opacity 0.2s, background 0.2s;
}
.game-admin-delete-btn:hover {
  opacity: 1;
  background: rgba(200, 50, 50, 0.1);
}
.game-admin-delete-all-btn {
  background: #f5f5f5;
  border: 1px solid #ddd;
  color: #cc4444;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 9pt;
  transition: background 0.2s;
}
.game-admin-delete-all-btn:hover {
  background: #fee;
  border-color: #cc4444;
}

/* ========== GAME LIVE LEADERBOARD ========== */
.game-live-lb {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 8px;
  padding: 8px 10px;
  min-width: 150px;
  font-size: 8.5pt;
  color: #ccc;
  z-index: 10;
  pointer-events: none;
  animation: gameLiveLbFadeIn 0.4s ease;
  backdrop-filter: blur(4px);
}
@keyframes gameLiveLbFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.game-live-lb-title {
  font-size: 7.5pt;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
  text-align: center;
}
.game-live-lb-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 4px;
  border-radius: 4px;
}
.game-live-lb-you {
  background: rgba(255, 215, 0, 0.15);
  color: #ffd700;
  font-weight: 700;
}
.game-live-lb-rank {
  width: 22px;
  text-align: right;
  font-weight: 600;
  flex-shrink: 0;
}
.game-live-lb-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.game-live-lb-score {
  font-weight: 600;
  text-align: right;
  flex-shrink: 0;
}

/* ============================================================
   PRIX MARCHÉ (gestion-produit) — comparaison de prix Internet IA
   ============================================================ */
.pm-cell {
  white-space: nowrap;
}
.pm-price {
  cursor: pointer;
  color: #1a5da6;
  text-decoration: underline dotted;
}
.pm-price:hover {
  color: #0d3d70;
}
.pm-stale {
  color: #999;
  font-style: italic;
}
.pm-badge {
  margin-left: 4px;
  font-size: 9pt;
}
.pm-badge-ok {
  color: #27ae60;
}
.pm-badge-cher {
  color: #e67e22;
  font-weight: 600;
}
.pm-badge-sous {
  color: #e74c3c;
  font-weight: 600;
}
.pm-error {
  color: #e74c3c;
  cursor: help;
}
.pm-analyze-btn {
  margin-left: 6px;
  padding: 2px 6px;
  font-size: 8pt;
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
}
.pm-analyze-btn:hover {
  background: #e0e0e0;
}
.pm-detail-container {
  max-width: 860px;
  width: 90%;
}
.pm-detail-meta {
  font-size: 9.5pt;
  color: #555;
}
.pm-detail-table {
  border-collapse: collapse;
  width: 100%;
  margin: 8px 0;
}
.pm-detail-table th,
.pm-detail-table td {
  border: 1px solid #ddd;
  padding: 4px 8px;
  font-size: 10pt;
  text-align: left;
}
.pm-detail-table th {
  /* Surcharge du style global thead th (fond couleur thème + texte blanc) */
  background: #f5f5f5;
  color: #333;
}
.pm-detail-best {
  background: #eafaf0;
  font-weight: 600;
}
.pm-conf-low {
  color: #e67e22;
  font-weight: 600;
}
.pm-detail-ours {
  font-size: 10.5pt;
}
.pm-settings-field {
  display: block;
  margin: 10px 0;
  font-size: 10pt;
}
.pm-settings-field input[type="number"] {
  width: 70px;
  margin-left: 6px;
}
.pm-settings-field textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 4px;
  font-family: monospace;
  font-size: 9.5pt;
}
.pm-settings-note {
  font-size: 8.5pt;
  color: #777;
  font-style: italic;
}

/* === Gestion produits : menu Colonnes affichées + bouton étiquette === */
.gp-cols-menu {
  position: relative;
  display: inline-block;
}
.gp-cols-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  padding: 12px;
  z-index: 200;
  min-width: 180px;
  animation: navDropdownFadeIn 0.15s ease;
  text-align: left;
}
.gp-cols-title {
  font-size: 9pt;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
}
.gp-cols-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10pt;
  padding: 3px 0;
  cursor: pointer;
  white-space: nowrap;
}
.gp-btn-print {
  padding: 3px 8px;
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
}
.gp-btn-print:hover {
  background: #e0e0e0;
}
.gp-btn-print:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================================
   MENU CACHÉ « Actions avancées » (10 clics sur le nom d'utilisateur)
   ============================================================ */
.danger-menu-modal {
  max-width: 560px;
  width: 90%;
}
.danger-menu-warn {
  background: #fff3e0;
  border: 1px solid #ffcc80;
  color: #e65100;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 9.5pt;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.danger-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #eee;
  border-radius: 8px;
  margin: 10px 0;
}
.danger-menu-item-text {
  text-align: left;
  font-size: 10pt;
}
.danger-menu-item-text span {
  display: block;
  font-size: 8.5pt;
  color: #777;
  margin-top: 3px;
}
.danger-menu-btn {
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 10pt;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.danger-menu-btn:hover {
  background: #f0f0f0;
}
.danger-menu-btn-off {
  background: #fdecea;
  border-color: #e57373;
  color: #b71c1c;
}
.danger-menu-btn-off:hover {
  background: #f9d3cf;
}
.danger-menu-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-top: 10px;
}

/* ============================================================
   TIERS PROFESSIONNELS (includes/html.select_tier.html, doc/PLAN_TIERS_PRO.md)
   Question Particulier / Pro, recherche d'entreprise, identifiants,
   bandeau « fiche pro incomplète » et panneau de complétion.
   ============================================================ */
.tp-question {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 8px;
  text-align: left;
}
.tp-question-label {
  font-size: 10pt;
  font-weight: 600;
  color: #555;
}
.tp-choix {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #f5f5f5;
  font-size: 10pt;
  cursor: pointer;
}
.tp-choix:hover { background: #ebebeb; }
/* Deux classes (0-2-0) : les règles « .page_xxx button » (0-1-1) des pages écraseraient la couleur */
.tp-choix.tp-choix-actif,
.tp-choix.tp-choix-actif:hover {
  background: var(--main-bg-color);
  border-color: var(--main-bg-color);
  color: #fff;
}
.tp-recherche-bloc { margin-bottom: 8px; text-align: left; }
.tp-recherche {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tp-input {
  box-sizing: border-box;
  padding: 5px 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 10pt;
  min-width: 0;
  flex: 1;
}
.tp-cp { flex: 0 0 64px; }
.tp-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #f5f5f5;
  font-size: 9pt;
  cursor: pointer;
  white-space: nowrap;
}
.tp-btn:hover { background: #ebebeb; }
.tp-btn:disabled { opacity: 0.55; cursor: default; }
.tp-btn.tp-btn-primaire,
.tp-btn.tp-btn-primaire:hover {
  background: var(--main-bg-color);
  border-color: var(--main-bg-color);
  color: #fff;
}
.tp-btn.tp-btn-discret { background: transparent; border-color: transparent; color: #777; }
.tp-note { font-size: 8pt; color: #888; margin-top: 3px; text-align: left; }
.tp-note-alerte { color: #b26a00; }
.tp-erreur {
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  background: #fdecea;
  color: #b71c1c;
  font-size: 9pt;
  text-align: left;
}
.tp-info {
  margin-top: 6px;
  font-size: 9pt;
  color: #2e7d32;
  text-align: left;
}
.tp-resultats {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  text-align: left;
}
.tp-resultats li {
  padding: 6px 10px;
  border-bottom: 1px solid #eee;
  font-size: 9.5pt;
  cursor: pointer;
}
.tp-resultats li:last-child { border-bottom: none; }
.tp-resultats li:hover { background: #f5f8fc; }
.tp-resultat-choisi { background: #e3f2fd !important; }
.tp-resultat-ferme { color: #888; }
.tp-resultat-detail { font-size: 8.5pt; color: #777; margin-top: 2px; }
.tp-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 7.5pt;
  font-weight: 600;
  vertical-align: middle;
}
.tp-badge-ferme { background: #eceff1; color: #546e7a; }
.tp-badge-doublon { background: #fff3e0; color: #e65100; }
.tp-identifiants {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  margin: 4px 0;
  padding: 8px 10px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fafafa;
  text-align: left;
}
.tp-identifiants-titre,
.tp-identifiants .tp-note-alerte { grid-column: 1 / -1; }
.tp-identifiants-titre { font-size: 9pt; font-weight: 600; color: #555; }
/* main.css impose « label { width: 30%; margin: 1%; font-weight: bold } » : neutralisé ici */
.tp-champ { display: flex; flex-direction: column; gap: 2px; font-size: 8.5pt; color: #666; width: auto; margin: 0; font-weight: normal; }
.tp-champ .tp-input { width: 100%; flex: none; }
.tp-champ-case { flex-direction: row; align-items: center; gap: 6px; align-self: end; }
.tp-doublon {
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #fff3e0;
  color: #8a4b00;
  font-size: 9pt;
  text-align: left;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.tp-alerte {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 9pt;
  text-align: left;
}
.tp-alerte-incomplet { background: #fff3e0; border: 1px solid #ffcc80; color: #8a4b00; }
.tp-alerte-type { background: #eceff1; border: 1px solid #cfd8dc; color: #37474f; }
.tp-alerte-texte { flex: 1; min-width: 160px; }
.tp-alerte-actions { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.tp-panneau {
  margin-top: 8px;
  padding: 10px;
  border: 1px solid #ffcc80;
  border-radius: 8px;
  background: #fffaf3;
  text-align: left;
}
.tp-panneau-titre {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 10pt;
  font-weight: 600;
  color: #8a4b00;
}
.tp-fermer {
  margin-left: auto;
  border: none;
  background: transparent;
  color: #888;
  cursor: pointer;
  font-size: 11pt;
}
.tp-choisi { margin: 8px 0 4px; font-size: 9.5pt; }
/* main.css impose table centrée + thead th coloré : surcharge pour la table de complétion */
.tp-table {
  width: 100%;
  margin: 4px 0 0;
  border-collapse: collapse;
  font-size: 9pt;
  text-align: left;
}
.tp-table thead th,
.tp-table thead th a {
  background: #f8f9fa;
  color: #555;
  font-weight: 600;
  text-align: left;
  padding: 4px 6px;
}
.tp-table td { padding: 4px 6px; border-top: 1px solid #eee; vertical-align: middle; text-align: left; }
.tp-table td:first-child { width: 24px; }
.tp-actuel { color: #777; }
.tp-ligne-ecrase td { background: #fff3e0; }
.tp-panneau-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

@media (max-width: 768px) {
  .tp-identifiants { grid-template-columns: 1fr; }
  .tp-btn, .tp-choix { min-height: 36px; }
}

/* ========================================================================
   PROPOSITION APPLICATION ANDROID (doc/PLAN_APP_ANDROID.md, étape 4 ; demande
   utilisateur 2026-10-01) : modale de téléchargement de l'APK proposée à un
   navigateur Android, préfixe aapk-. z-index : classe .modal-mask standard
   (9999) — TOUJOURS sous .update-mask (2147483000, règle obligatoire du
   versioning), jamais au-dessus de la modale de mise à jour.
   ======================================================================== */
.aapk-modal {
  width: 420px;
  max-width: 92vw;
  text-align: center;
  border-radius: 12px;
  padding: 26px;
}
.aapk-icon {
  font-size: 34px;
  color: var(--main-bg-color);
  margin-bottom: 10px;
}
.aapk-modal h3 {
  margin: 0 0 8px 0;
  font-size: 13pt;
  color: #333;
}
.aapk-version {
  margin: 0 0 14px 0;
  font-size: 9.5pt;
  color: #777;
}
.aapk-help {
  text-align: left;
  background: #f8f9fa;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 16px;
}
.aapk-help p {
  margin: 0 0 8px 0;
  font-size: 9pt;
  color: #555;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.aapk-help p:last-of-type {
  margin-bottom: 6px;
}
.aapk-help .fa {
  color: var(--main-bg-color);
  margin-top: 1px;
}
.aapk-origin-row {
  display: flex;
  gap: 6px;
  align-items: center;
}
.aapk-origin-input {
  flex: 1;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 9pt;
  color: #333;
  background: #fff;
}
.aapk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 6px;
}
.aapk-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #f5f5f5;
  color: #555;
  font-size: 10pt;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, filter 0.2s;
  white-space: nowrap;
}
.aapk-btn:disabled {
  opacity: 0.6;
  cursor: default;
}
.aapk-btn-copy {
  padding: 7px 12px;
  font-weight: 500;
}
.aapk-btn-primary {
  background: var(--main-bg-color);
  color: #fff;
  border: none;
}
.aapk-btn-primary:hover:not(:disabled) {
  filter: brightness(1.1);
}
.aapk-btn-later:hover {
  background: #e8e8e8;
}
.aapk-btn-ignore {
  background: transparent;
  border: none;
  color: #999;
  font-weight: 500;
}
.aapk-btn-ignore:hover {
  color: #777;
  text-decoration: underline;
}

/* Entrée permanente du menu utilisateur (nav-user-dropdown) */
.aapk-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #555;
  font-size: 9.5pt;
  padding: 2px 0;
  transition: color 0.2s;
}
.aapk-nav-link:hover {
  color: var(--main-bg-color);
}

/* Mobile : cas principal (360-412px), cibles tactiles 44px */
@media (max-width: 480px) {
  .aapk-modal {
    width: 94vw;
    padding: 20px;
  }
  .aapk-actions {
    flex-direction: column;
  }
  .aapk-btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }
  .aapk-origin-row {
    flex-direction: column;
    align-items: stretch;
  }
  .aapk-origin-input {
    min-height: 40px;
  }
  .aapk-btn-copy {
    min-height: 44px;
    justify-content: center;
  }
}

/* ============================================================
   VISIONNEUSE D'IMAGES — standard DoliMIS (js/visionneuse.js, dmVisionneuse)
   Calque ajouté au <body> : au-dessus des modales (10001), sous la modale de mise à jour.
   Deux classes partout (.dm-vis .dm-vis-btn) : les règles « .page_xxx button » ne l'atteignent pas
   (calque hors de la page) mais la règle générique button de main.css, si.
   ============================================================ */
.dm-vis {
  position: fixed; inset: 0; z-index: 10001; background: rgba(10, 12, 16, .92);
  display: flex; flex-direction: column; align-items: stretch; text-align: left;
  user-select: none; -webkit-user-select: none; touch-action: none;
}
.dm-vis .dm-vis-barre { display: flex; align-items: center; gap: 6px; padding: 8px 12px; color: #eee; font-size: 9.5pt; background: rgba(0, 0, 0, .35); }
.dm-vis .dm-vis-titre { flex: 1 1 auto; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-vis .dm-vis-zoom { min-width: 44px; text-align: right; color: #bbb; font-variant-numeric: tabular-nums; }
.dm-vis .dm-vis-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin: 0;
  border-radius: 6px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08);
  color: #fff; cursor: pointer; font-size: 11pt; text-decoration: none; padding: 0; box-shadow: none;
}
.dm-vis .dm-vis-btn:hover { background: rgba(255,255,255,.2); }
.dm-vis .dm-vis-btn:disabled { opacity: .35; cursor: default; }
.dm-vis .dm-vis-zone { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.dm-vis .dm-vis-zone img { max-width: 100%; max-height: 100%; object-fit: contain; transform-origin: center center; will-change: transform; background: #fff; }
.dm-vis .dm-vis-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 64px; margin: 0; padding: 0;
  border: none; border-radius: 8px; cursor: pointer; background: rgba(255,255,255,.12); color: #fff; font-size: 14pt; z-index: 1;
}
.dm-vis .dm-vis-nav:hover { background: rgba(255,255,255,.28); }
.dm-vis .dm-vis-nav-g { left: 10px; }
.dm-vis .dm-vis-nav-d { right: 10px; }
.dm-vis .dm-vis-aide { text-align: center; color: #999; font-size: 8pt; padding: 6px 12px 10px; }
html.dm-vis-ouverte, html.dm-vis-ouverte body { overflow: hidden; }
/* Vignette cliquable standard (curseur loupe) : à poser sur toute image qui ouvre la visionneuse */
.dm-zoomable { cursor: zoom-in; }
@media (max-width: 768px) {
  .dm-vis .dm-vis-aide { display: none; }
  .dm-vis .dm-vis-btn { width: 40px; height: 40px; }
  .dm-vis .dm-vis-nav { width: 40px; height: 56px; }
}
