@charset "utf-8";
/* =========================================
   Qualitrace - Forms & Lists (Pro, no images)
   Keeps same class names / structure
========================================= */

/* clickable th */
th.tr {
  cursor: pointer;
  height: 35px;
}

/* red strike values */
.mnt,
#rr {
  text-decoration: line-through;
  font-size: 12px;
  color: #d10f1b;
  font-weight: 700;
}

/* ---------------------------
   Form table
--------------------------- */
table.formulaire {
  float: left;
  width: auto;
  width: 100%;
  border: 1px solid #d9e3f3;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  box-shadow: 0 10px 26px rgba(16, 31, 74, .08);
}

/* header th */
table.formulaire tr th,
table.formulaire tr th.az {
  vertical-align: middle;
  background: linear-gradient(180deg, #0b1c4aad, #1b3275);
  color: #ffffff;
  letter-spacing: 1px;
  height: 34px;
  border: none;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

table.formulaire tr th {
  text-align: right;
}

table.formulaire tr th.az {
  text-align: left;
}

table.formulaire tr th img {
  height: 18px;
  width: 18px;
  opacity: .9;
}

/* label cells */
table.formulaire tr td.label {
  vertical-align: middle;
  font-size: 11px;
  text-align: right;
  padding: 10px 10px;
  height: 34px;
  border: none;
  color: #1f2a44;
  white-space: nowrap;
}

/* data cells (if you have normal td) */
table.formulaire tr td {
  padding: 10px 10px;
  border: none;
}

/* ---------------------------
   List table
--------------------------- */
table.liste {
  width: 100%;
  border: 1px solid #d9e3f3;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(16, 31, 74, .08);
}

/* list header */
.listehead {
  background: linear-gradient(180deg, #27438f, #1b3275);
  vertical-align: middle;
  font-size: 12px;
  font-family: Arial, Helvetica, sans-serif;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .4px;
}

/* list rows */
table.liste tr td {
  vertical-align: middle;
  font-size: 11px;
  padding: 9px 10px;
  border: none;
  text-align: left;
  color: #1f2a44;
  border-bottom: 1px solid #edf2fb;
}

/* last row no border */
table.liste tr:last-child td {
  border-bottom: none;
}


/* numeric */
table.liste tr td.nbr {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* highlighted row (old .c2) */
.c2 {
  background: #f2f4fc;
  color: #000;
}

/* ---------------------------
   Inputs & Buttons (Pro)
--------------------------- */
input,
select,
textarea {
  font: 12px Arial, Helvetica, sans-serif;
  background: #ffffff;
  color: #1f2a44;
  border: 1px solid #cfd8ea;
  border-radius: 6px;
  padding: 7px 10px;
  transition: all .15s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #2f6fed;
  box-shadow: 0 0 0 3px rgba(47, 111, 237, .14);
}

input[type=checkbox] {
  border: 0;
  padding: 0;
  border-radius: 4px;
}

input[type=image] {
  border: none;
  background: none;
}

/* buttons */
input[type=button],
input[type=submit] {
  padding: 7px 12px;
  border: 1px solid #2f6fed;
  background: #7488af;
  color: #ffffff;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  letter-spacing: .4px;
  font-size: 12px;
  border-radius: 6px;
  transition: all .15s ease;
  margin-left: 2px;
}

input[type=button]:hover,
input[type=submit]:hover {
  background: #234fb3;
  border-color: #234fb3;
}

/* optional: smaller compact buttons if you need old look */
input.btn-sm {
  padding: 5px 10px;
  font-size: 11px;
}

/* ---------------------------
   Minor helpers
--------------------------- */
#rr {
  display: inline;
}
/* ========================================
   MODERN UNIFIED SEARCH CARD SYSTEM
   ======================================== */

.search-card {
	background: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.02) !important;
	border-radius: 8px !important;
	padding: 8px 12px !important;
	margin-bottom: 8px !important;
	box-sizing: border-box !important;
	width: 100% !important;
	font-family: inherit !important;
}

.search-header {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	border-bottom: 1px solid #f1f5f9 !important;
	padding-bottom: 4px !important;
	margin-bottom: 8px !important;
}

.search-title {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	color: #1e293b !important;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
}

.search-title img {
	vertical-align: middle !important;
	width: 16px !important;
	height: 16px !important;
}

.search-actions {
	display: flex !important;
	align-items: center !important;
	gap: 6px !important;
	flex-wrap: wrap !important;
}

.search-actions img[src*="Excel.png"] {
	cursor: pointer !important;
	width: 20px !important;
	height: 20px !important;
	transition: transform 0.2s !important;
}

.search-actions img[src*="Excel.png"]:hover {
	transform: scale(1.1) !important;
}

/* Button styles */
.search-btn {
	height: 24px !important;
	padding: 0 10px !important;
	font-size: 10px !important;
	font-weight: 600 !important;
	border-radius: 4px !important;
	border: none !important;
	cursor: pointer !important;
	transition: all 0.2s ease-in-out !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-transform: uppercase !important;
	color: #ffffff !important;
}

.search-btn-primary {
	background-color: #0284c7 !important;
}
.search-btn-primary:hover {
	background-color: #0369a1 !important;
	box-shadow: 0 2px 4px rgba(2, 132, 199, 0.2) !important;
}

.search-btn-secondary {
	background-color: #10b981 !important;
}
.search-btn-secondary:hover {
	background-color: #059669 !important;
	box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2) !important;
}

.search-btn-info {
	background-color: #3b82f6 !important;
}
.search-btn-info:hover {
	background-color: #2563eb !important;
	box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2) !important;
}

.search-btn-warning {
	background-color: #f43f5e !important;
}
.search-btn-warning:hover {
	background-color: #e11d48 !important;
	box-shadow: 0 2px 4px rgba(244, 63, 94, 0.2) !important;
}

.search-btn-dark {
	background-color: #64748b !important;
}
.search-btn-dark:hover {
	background-color: #475569 !important;
	box-shadow: 0 2px 4px rgba(100, 116, 139, 0.2) !important;
}

/* Grid layout for search form body */
.search-grid {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	gap: 8px 14px !important;
	margin-bottom: 8px !important;
	align-items: end !important;
}

@media (max-width: 900px) {
	.search-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

.search-field {
	display: flex !important;
	flex-direction: column !important;
	gap: 2px !important;
	width: 100% !important;
}

.search-field:has(.search-submit-btn),
.search-field.search-action-right {
	grid-column: auto !important;
	width: 100% !important;
	margin-left: 0 !important;
}

.search-submit-btn {
	width: 100% !important;
	height: 26px !important;
	justify-content: center !important;
	font-weight: 700 !important;
}

.search-field label {
	font-size: 10px !important;
	font-weight: 600 !important;
	color: #475569 !important;
	text-align: left !important;
}

.search-field input[type="text"],
.search-field select {
	height: 24px !important;
	padding: 2px 6px !important;
	font-size: 11px !important;
	border: 1px solid #cbd5e1 !important;
	border-radius: 4px !important;
	background-color: #ffffff !important;
	color: #1e293b !important;
	width: 100% !important;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03) !important;
	box-sizing: border-box !important;
	transition: all 0.2s ease-in-out !important;
}

.search-field input[type="text"]:focus,
.search-field select:focus {
	border-color: #3b82f6 !important;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
	outline: none !important;
}

/* Checkbox field styling */
.search-field-checkbox {
	display: flex !important;
	align-items: center !important;
	gap: 4px !important;
	height: 24px !important;
	cursor: pointer !important;
}

.search-field-checkbox input[type="checkbox"] {
	width: 12px !important;
	height: 12px !important;
	cursor: pointer !important;
	margin: 0 !important;
}

.search-field-checkbox label {
	font-size: 11px !important;
	font-weight: 600 !important;
	color: #475569 !important;
	cursor: pointer !important;
}

/* Submit and Footer section */
.search-footer {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	flex-wrap: wrap !important;
	gap: 8px !important;
	border-top: 1px solid #f1f5f9 !important;
	padding-top: 8px !important;
}

.search-results-count {
	font-size: 10px !important;
	font-weight: 600 !important;
	color: #64748b !important;
}

.search-submit-container {
	display: flex !important;
	align-items: center !important;
	gap: 6px !important;
}

.search-submit-btn {
	background-color: #0284c7 !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 4px !important;
	height: 26px !important;
	padding: 0 12px !important;
	font-size: 10px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	transition: all 0.2s ease-in-out !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
}

.search-submit-btn:hover {
	background-color: #0369a1 !important;
	box-shadow: 0 4px 6px -1px rgba(2, 132, 199, 0.2) !important;
}

.search-submit-btn img {
	filter: brightness(0) invert(1) !important;
	width: 12px !important;
	height: 12px !important;
}

/* Info card for legends */
.legend-card {
	background: #f8fafc !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 6px !important;
	padding: 6px 12px !important;
	margin-top: 6px !important;
	display: flex !important;
	justify-content: center !important;
	gap: 15px !important;
	flex-wrap: wrap !important;
}

.legend-item {
	display: flex !important;
	align-items: center !important;
	gap: 6px !important;
	font-size: 11px !important;
	font-weight: 600 !important;
	color: #475569 !important;
}

.legend-color-box {
	width: 20px !important;
	height: 10px !important;
	border-radius: 2px !important;
	display: inline-block !important;
}

/* ========================================
   PAGINATION COMBO STYLING
   ======================================== */
select[name="pagination"], select#pagination {
	width: auto !important;
	min-width: 150px !important;
	max-width: 250px !important;
	display: inline-block !important;
	padding: 4px 12px !important;
	height: 28px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	border: 1px solid #cbd5e1 !important;
	border-radius: 6px !important;
	background-color: #f8fafc !important;
	color: #334155 !important;
	cursor: pointer !important;
	box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
}

select[name="pagination"]:focus, select#pagination:focus {
	border-color: #3b82f6 !important;
	outline: none !important;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
}

#pages {
	text-align: center !important;
	margin-top: 15px !important;
	font-size: 13px !important;
	color: #475569 !important;
	font-weight: 600 !important;
}

/* ========================================
   MODERN FORM GRID LAYOUT & BEAUTIFUL FIELDS (ALL AJOUT FORMS)
   ======================================== */
.form-grid {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 16px 24px !important;
	padding: 24px 28px !important;
	background: #ffffff !important;
	border-radius: 0 0 12px 12px !important;
	box-shadow: 0 4px 15px rgba(15, 23, 42, 0.05) !important;
	border: 1px solid #e2e8f0 !important;
	border-top: none !important;
	margin-bottom: 25px !important;
}

/* Maintain 3-column PC form layout */

.form-group {
	display: flex !important;
	flex-direction: column !important;
	gap: 6px !important;
	width: 100% !important;
}

.form-group label {
	font-weight: 700 !important;
	font-size: 11.5px !important;
	color: #475569 !important;
	margin-bottom: 2px !important;
	text-transform: uppercase !important;
	letter-spacing: 0.4px !important;
}

.form-group input[type="text"], 
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group select {
	width: 100% !important;
	max-width: 100% !important;
	height: 36px !important;
	padding: 6px 12px !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	color: #0f172a !important;
	background-color: #f8fafc !important;
	border: 1.5px solid #cbd5e1 !important;
	border-radius: 8px !important;
	transition: all 0.2s ease !important;
	display: block !important;
	margin: 0 !important;
	box-sizing: border-box !important;
	outline: none !important;
}

.form-group textarea {
	width: 100% !important;
	max-width: 100% !important;
	min-height: 80px !important;
	padding: 8px 12px !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	color: #0f172a !important;
	background-color: #f8fafc !important;
	border: 1.5px solid #cbd5e1 !important;
	border-radius: 8px !important;
	transition: all 0.2s ease !important;
	display: block !important;
	margin: 0 !important;
	box-sizing: border-box !important;
	outline: none !important;
	resize: vertical !important;
}

.form-group input[type="text"]:focus, 
.form-group input[type="password"]:focus,
.form-group input[type="number"]:focus,
.form-group input[type="email"]:focus,
.form-group select:focus,
.form-group textarea:focus {
	border-color: #2563eb !important;
	background-color: #ffffff !important;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
	outline: none !important;
}

/* ===== STYLING COMBO AGENCE ÉLÉGANTE ET COMPACTE ===== */
select[name="agence"],
.actu-agency select,
.search-field select[name="agence"] {
	height: 26px !important;
	padding: 2px 20px 2px 8px !important;
	font-size: 11.5px !important;
	font-weight: 600 !important;
	color: #0f172a !important;
	background-color: #f8fafc !important;
	border: 1.5px solid #cbd5e1 !important;
	border-radius: 6px !important;
	outline: none !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
	max-width: 220px !important;
	display: inline-block !important;
	vertical-align: middle !important;
}

select[name="agence"]:hover,
.actu-agency select:hover {
	border-color: #2563eb !important;
	background-color: #ffffff !important;
}

select[name="agence"]:focus,
.actu-agency select:focus {
	border-color: #2563eb !important;
	background-color: #ffffff !important;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

/* ========================================
   REGROUPEMENT CLAIR DES ICÔNES D'ACTION TABLEAU
   ======================================== */
table.liste th:last-child,
table.liste td:last-child {
	white-space: nowrap !important;
	width: 1% !important;
	text-align: center !important;
	vertical-align: middle !important;
	padding: 4px 6px !important;
}

.action-group,
table.liste td:last-child > div {
	display: inline-flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px !important;
	background: #f8fafc !important;
	border: 1.5px solid #cbd5e1 !important;
	border-radius: 20px !important;
	padding: 3px 10px !important;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
	transition: all 0.2s ease !important;
	margin: 0 auto !important;
}

table.liste tr:hover .action-group,
table.liste tr:hover td:last-child > div {
	background: #ffffff !important;
	border-color: #94a3b8 !important;
	box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1) !important;
}

.action-group img,
.action-group a,
table.liste td:last-child img,
table.liste td:last-child a {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-decoration: none !important;
	vertical-align: middle !important;
}

.action-group img,
table.liste td:last-child img {
	width: 16px !important;
	height: 16px !important;
	padding: 3px !important;
	border-radius: 5px !important;
	cursor: pointer !important;
	transition: transform 0.18s ease, background-color 0.18s ease !important;
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
	margin: 0 !important;
}

.action-group img:hover,
.action-group a:hover img,
table.liste td:last-child img:hover,
table.liste td:last-child a:hover img {
	background-color: #e2e8f0 !important;
	transform: scale(1.25) !important;
}

/* ====================================================
   ASCENSEURS DE DÉFILEMENT HORIZONTAL POUR TOUTES LES DIVS DE RECHERCHE & TABLEAUX (MOBILE)
   ==================================================== */
.search-card,
.search-container,
.search-panel,
.form-header,
.stats-filter-form,
.control-bar,
.rechercher,
.legend-card,
#search-box,
.search-box,
.recherche,
.table-container,
.table-card,
.report-container {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
}

/* Ascenseur horizontal direct pour tous les tableaux et divs de plus grande largeur */
.middle_back,
.table-container,
.table-card,
.report-container,
.search-card,
.search-container,
.search-panel,
.search-fields-container,
.search-header-flex,
.search-fields-flex,
.form-header,
.stats-filter-form,
.control-bar,
.legend-card,
#search-box,
.search-box,
.recherche,
.barre,
#menu,
table.liste,
table.formulaire,
table.lst,
table.stats-table,
table.data-table {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	overflow-x: auto !important;
	-webkit-overflow-scrolling: touch !important;
	scrollbar-width: thin !important;
	scrollbar-color: #2f6fed #e2e8f0 !important;
}

/* STYLE DES ASCENSEURS (SCROLLBARS THIN & MODERN) FOR ALL SEARCH & TABLE DIVS */
.middle_back::-webkit-scrollbar,
#st11::-webkit-scrollbar,
.table-container::-webkit-scrollbar,
.table-card::-webkit-scrollbar,
.report-container::-webkit-scrollbar,
.search-card::-webkit-scrollbar,
.search-container::-webkit-scrollbar,
.search-panel::-webkit-scrollbar,
.search-fields-container::-webkit-scrollbar,
.search-header-flex::-webkit-scrollbar,
.search-fields-flex::-webkit-scrollbar,
.form-header::-webkit-scrollbar,
.stats-filter-form::-webkit-scrollbar,
.control-bar::-webkit-scrollbar,
.legend-card::-webkit-scrollbar,
#search-box::-webkit-scrollbar,
.search-box::-webkit-scrollbar,
.recherche::-webkit-scrollbar,
.barre::-webkit-scrollbar,
#menu::-webkit-scrollbar,
table.liste::-webkit-scrollbar,
table.formulaire::-webkit-scrollbar {
	height: 8px !important;
	width: 8px !important;
}

.middle_back::-webkit-scrollbar-track,
#st11::-webkit-scrollbar-track,
.table-container::-webkit-scrollbar-track,
.table-card::-webkit-scrollbar-track,
.report-container::-webkit-scrollbar-track,
.search-card::-webkit-scrollbar-track,
.search-container::-webkit-scrollbar-track,
.search-panel::-webkit-scrollbar-track,
.search-fields-container::-webkit-scrollbar-track,
.search-header-flex::-webkit-scrollbar-track,
.search-fields-flex::-webkit-scrollbar-track,
.form-header::-webkit-scrollbar-track,
.stats-filter-form::-webkit-scrollbar-track,
.control-bar::-webkit-scrollbar-track,
.legend-card::-webkit-scrollbar-track,
#search-box::-webkit-scrollbar-track,
.search-box::-webkit-scrollbar-track,
.recherche::-webkit-scrollbar-track,
.barre::-webkit-scrollbar-track,
#menu::-webkit-scrollbar-track,
table.liste::-webkit-scrollbar-track,
table.formulaire::-webkit-scrollbar-track {
	background: #e2e8f0 !important;
	border-radius: 4px !important;
}

.middle_back::-webkit-scrollbar-thumb,
#st11::-webkit-scrollbar-thumb,
.table-container::-webkit-scrollbar-thumb,
.table-card::-webkit-scrollbar-thumb,
.report-container::-webkit-scrollbar-thumb,
.search-card::-webkit-scrollbar-thumb,
.search-container::-webkit-scrollbar-thumb,
.search-panel::-webkit-scrollbar-thumb,
.search-fields-container::-webkit-scrollbar-thumb,
.search-header-flex::-webkit-scrollbar-thumb,
.search-fields-flex::-webkit-scrollbar-thumb,
.form-header::-webkit-scrollbar-thumb,
.stats-filter-form::-webkit-scrollbar-thumb,
.control-bar::-webkit-scrollbar-thumb,
.legend-card::-webkit-scrollbar-thumb,
#search-box::-webkit-scrollbar-thumb,
.search-box::-webkit-scrollbar-thumb,
.recherche::-webkit-scrollbar-thumb,
.barre::-webkit-scrollbar-thumb,
#menu::-webkit-scrollbar-thumb,
table.liste::-webkit-scrollbar-thumb,
table.formulaire::-webkit-scrollbar-thumb {
	background: #2f6fed !important;
	border-radius: 4px !important;
}

.middle_back::-webkit-scrollbar-thumb:hover,
#st11::-webkit-scrollbar-thumb:hover,
.table-container::-webkit-scrollbar-thumb:hover,
.table-card::-webkit-scrollbar-thumb:hover,
.report-container::-webkit-scrollbar-thumb:hover,
.search-card::-webkit-scrollbar-thumb:hover,
.search-container::-webkit-scrollbar-thumb:hover,
.search-panel::-webkit-scrollbar-thumb:hover,
.search-fields-container::-webkit-scrollbar-thumb:hover,
.search-header-flex::-webkit-scrollbar-thumb:hover,
.search-fields-flex::-webkit-scrollbar-thumb:hover,
.form-header::-webkit-scrollbar-thumb:hover,
.stats-filter-form::-webkit-scrollbar-thumb:hover,
.control-bar::-webkit-scrollbar-thumb:hover,
.legend-card::-webkit-scrollbar-thumb:hover,
#search-box::-webkit-scrollbar-thumb:hover,
.search-box::-webkit-scrollbar-thumb:hover,
.recherche::-webkit-scrollbar-thumb:hover,
.barre::-webkit-scrollbar-thumb:hover,
#menu::-webkit-scrollbar-thumb:hover,
table.liste::-webkit-scrollbar-thumb:hover,
table.formulaire::-webkit-scrollbar-thumb:hover {
	background: #1b3275 !important;
}

