.page_outils {
  width: 100%;
}

#id_exports,
#id_tiers {
  width: 50%;
  margin: 0 auto;
}

/* === Boutons === */
.page_outils button {
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 10pt;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  vertical-align: middle;
  background-color: #f0f2f5;
  color: #333;
}

.page_outils button:hover {
  background-color: #e0e3e8;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.page_outils button:active {
  transform: translateY(0);
  box-shadow: none;
}

/* === Header === */
.header-outils {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: linear-gradient(135deg, #f8f9fb 0%, #eef0f4 100%);
  border-bottom: 2px solid #dde0e6;
}

.ho-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ho-title h1 {
  margin: 0;
  font-size: 15pt;
  font-weight: 700;
  color: #333;
}
.ho-title-icon {
  font-size: 14pt;
  color: var(--main-bg-color);
}

/* === Sections === */
.ho-section {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  margin-bottom: 10px;
}

.ho-section-title {
  font-size: 9pt;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

/* === Champs === */
.ho-field-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.ho-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ho-field-arrow {
  display: flex;
  align-items: center;
  padding-bottom: 6px;
  color: #999;
  font-size: 12pt;
}

.ho-label {
  font-size: 9pt;
  font-weight: 500;
  color: #777;
}

.ho-input {
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 10pt;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  box-sizing: border-box;
}
.ho-input:focus {
  border-color: var(--main-bg-color);
}
.ho-input-small {
  width: 120px;
}

.ho-select {
  width: 250px;
  vertical-align: middle;
  display: inline-block;
}

/* === Boutons spéciaux === */
.ho-btn-primary {
  background: var(--main-bg-color) !important;
  color: white !important;
  font-weight: 600;
}
.ho-btn-primary:hover {
  filter: brightness(1.1);
}

.ho-btn-warning {
  background: #e65100 !important;
  color: white !important;
  font-weight: 600;
}
.ho-btn-warning:hover {
  filter: brightness(1.1);
}

.ho-btn-danger {
  background: #c62828 !important;
  color: white !important;
  font-weight: 600;
  padding: 10px 20px !important;
}
.ho-btn-danger:hover {
  filter: brightness(1.1);
}

.ho-spinner {
  color: var(--main-bg-color);
  font-size: 14pt;
  margin-left: 8px;
}

/* === Info remplacement === */
.ho-replace-info {
  background: #e3f2fd;
  border: 1px solid #90caf9;
  border-radius: 6px;
  padding: 10px 14px;
  margin: 10px 0;
  font-size: 10pt;
  color: #1565c0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* === Table === */
.ho-table-wrapper {
  margin-top: 10px;
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #eee;
  border-radius: 8px;
}

.ho-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 10pt;
}

.ho-table-header th {
  background: linear-gradient(135deg, #f1f3f5 0%, #e8eaed 100%);
  padding: 8px 10px;
  font-weight: 600;
  font-size: 9pt;
  color: #555;
  text-align: left;
  border-bottom: 2px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 1;
}

.ho-table-row td {
  padding: 6px 10px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

.ho-table-row:nth-child(even) td {
  background-color: #fafbfc;
}
.ho-table-row:nth-child(odd) td {
  background-color: #fff;
}

.ho-table-row:hover td {
  background-color: #f0f7ff;
}

.ho-table-row a {
  color: var(--main-bg-color);
  text-decoration: none;
}
.ho-table-row a:hover {
  text-decoration: underline;
}

.ho-arrow-small {
  font-size: 8pt;
  color: #999;
  margin: 0 4px;
}

/* === Responsive mobile === */
@media (max-width: 768px) {
  #id_exports,
  #id_tiers {
    width: auto;
    margin: 0 10px;
  }

  .ho-field-row {
    flex-direction: column;
    align-items: stretch;
  }

  .ho-field-arrow {
    justify-content: center;
    padding: 0;
  }

  .ho-select {
    width: 100%;
  }
}
