/* Historique et impression des factures d'état. */
.invoice-history-page .main-product { min-height: 680px; align-items: flex-start; }
.invoice-history-page .find-box { width: 100%; max-width: 1080px; padding: clamp(26px,4vw,48px); text-align: center; background: rgba(255,255,255,.94); border: 1px solid rgba(7,32,62,.08); border-radius: 22px; box-shadow: 0 24px 60px rgba(7,32,62,.12); }
.invoice-history-page .find-box h1 { margin: 0; padding: 0; font-size: clamp(30px,5vw,46px); }
.invoice-history-page .invoice-history-message { min-height: 0; margin: 9px 0 0; color: #e25f16; }
.invoice-history-page .invoice-history-content { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; width: 100%; margin-top: 26px; }
.invoice-history-page .invoice-mode-action,
.invoice-history-page .invoice-action,
.invoice-history-page .invoice-summary { min-width: 0; }
.invoice-history-page .invoice-mode-action .form-sh,
.invoice-history-page .invoice-action .form-sh,
.invoice-history-page .invoice-summary .form-sh { height: 100%; margin: 0; }
.invoice-history-page .invoice-history-content .btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 10px 14px; color: #16415f; font-weight: 700; white-space: normal; background: #f8fbfd; border: 1px solid #d1dee8; border-radius: 11px; }
.invoice-history-page .invoice-mode-action .btn { color: #fff; cursor: pointer; background: linear-gradient(135deg,#147ac1,#075a98); border-color: #147ac1; }
.invoice-history-page .invoice-filter-panel { grid-column: 1 / -1; padding: 16px; background: #f5f9fc; border: 1px solid #d5e2eb; border-radius: 13px; }
.invoice-history-page .invoice-filter-panel[hidden] { display: none; }
.invoice-history-page .invoice-filter-panel .form-sh { margin: 0; }
.invoice-history-page .invoice-filter-panel form { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.invoice-history-page .invoice-filter-panel input { width: 100%; min-height: 50px; padding: 10px 12px; color: #161616; text-align: center; background: #fff; border: 1px solid #cbdbe6; border-radius: 10px; }
.invoice-history-page .invoice-filter-panel input[type="submit"] { color: #fff; font-weight: 800; background: #147ac1; border-color: #147ac1; }
.invoice-history-page .invoice-total-print { grid-column: 1 / -1; }
.invoice-history-page .invoice-list-item { min-width: 0; }
.invoice-history-page .invoice-list-item .form-sh { height: 100%; margin: 0; }
.invoice-history-page .invoice-list-item .btn { min-height: 58px; direction: ltr; color: #075a98; background: #fff; box-shadow: 0 5px 14px rgba(7,32,62,.06); }
.invoice-history-page .invoice-summary { grid-column: 1 / -1; margin-top: 8px; }
.invoice-history-page .invoice-summary .btn { color: #fff; font-size: 17px; background: #5483b4; border-color: #5483b4; }
.invoice-history-page .invoice-action { grid-column: 1 / -1; }
.invoice-history-page .invoice-logout .btn { color: #a12f35; background: #fff6f6; border-color: #edc8ca; }
@media (max-width: 767px) {
   .invoice-history-page .find-box { width: 100%; max-width: none; padding: 25px 7px; border-radius: 12px; }
   .invoice-history-page .invoice-history-content { grid-template-columns: 1fr; gap: 10px; margin-top: 20px; }
   .invoice-history-page .invoice-filter-panel,
   .invoice-history-page .invoice-total-print,
   .invoice-history-page .invoice-summary,
   .invoice-history-page .invoice-action { grid-column: auto; }
   .invoice-history-page .invoice-filter-panel { padding: 11px 7px; }
   .invoice-history-page .invoice-filter-panel form { grid-template-columns: 1fr; gap: 9px; }
}
@media (max-width: 380px) { .invoice-history-page .find-box { padding-right: 4px; padding-left: 4px; } }
