.invoice-consultation-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(145px, 1fr));
  gap: 10px;
  margin: 15px 0;
}

.invoice-consultation-summary article {
  min-width: 0;
  padding: 15px 14px;
  border: 1px solid #dbe5ee;
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--shadow);
}

.invoice-consultation-summary small,
.invoice-consultation-summary strong,
.invoice-consultation-summary span { display: block; }

.invoice-consultation-summary small {
  margin-bottom: 7px;
  color: #647681;
  font-size: 9px;
  font-weight: 700;
}

.invoice-consultation-summary strong {
  overflow: hidden;
  color: #173444;
  font: 800 15px Manrope;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invoice-consultation-summary span {
  margin-top: 5px;
  color: #7b8993;
  font-size: 8px;
}

.invoice-consultation-summary .released strong { color: #13835a; }
.invoice-consultation-summary .denied strong { color: #c77a16; }
.invoice-consultation-summary .pending strong { color: #c44747; }
.invoice-consultation-summary .warning strong { color: #bd5d39; }

.invoices-view:not(.notification-mode) .invoice-table { min-width: 1380px; }

.invoices-view:not(.notification-mode) .invoice-table :is(th, td):is(:nth-child(2), :nth-child(4), :nth-child(7), :nth-child(8), :nth-child(10), :nth-child(13), :nth-child(14)) {
  display: none;
}

.invoices-view:not(.notification-mode) .invoice-table tbody td:nth-child(1),
.invoices-view:not(.notification-mode) .invoice-table tbody td:nth-child(2),
.invoices-view:not(.notification-mode) .invoice-table tbody td:nth-child(3) {
  position: static !important;
  left: auto !important;
  z-index: auto;
  box-shadow: none;
}

.invoices-view:not(.notification-mode) .invoice-table thead th:nth-child(1),
.invoices-view:not(.notification-mode) .invoice-table thead th:nth-child(2),
.invoices-view:not(.notification-mode) .invoice-table thead th:nth-child(3) {
  left: auto !important;
}

.invoices-view:not(.notification-mode) .invoice-table tr.selected,
.invoices-view:not(.notification-mode) .invoice-table tr.selected td {
  background: #dff5f2;
}

.invoice-consultation-detail {
  margin: 12px 15px 15px;
  padding: 17px;
  border: 1px solid #cfe1e6;
  border-radius: 12px;
  background: #f8fbfc;
}

.invoice-consultation-detail.hidden { display: none; }

.invoice-consultation-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.invoice-consultation-detail-head small,
.invoice-consultation-detail-head strong { display: block; }
.invoice-consultation-detail-head small { color: #24838d; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.invoice-consultation-detail-head strong { margin-top: 4px; color: #173444; font: 800 15px Manrope; }
.invoice-consultation-detail-head button { border: 0; background: transparent; color: #62737f; cursor: pointer; font-size: 18px; }

.invoice-consultation-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 12px;
}

.invoice-consultation-detail-grid div {
  padding: 10px;
  border-radius: 9px;
  background: #fff;
}

.invoice-consultation-detail-grid small,
.invoice-consultation-detail-grid strong { display: block; }
.invoice-consultation-detail-grid small { color: #71808b; font-size: 8px; }
.invoice-consultation-detail-grid strong { margin-top: 5px; color: #263f4d; font-size: 10px; }
.invoice-consultation-detail-grid a { color: #147d81; }
.invoice-nf-open,.invoice-nf-link-open { border: 0; border-radius: 7px; background: transparent; color: #147d81; font-size: 10px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.invoice-nf-open { max-width: 210px; overflow: hidden; padding: 5px 7px; text-align: left; text-overflow: ellipsis; }
.invoice-nf-open small { color: #71838d; }.invoice-nf-link-open { padding: 6px 9px; background: #eaf7f7; }
.invoice-nf-open:hover,.invoice-nf-link-open:hover { background: #d9f0f1; }
.invoice-nf-popup { position: fixed; inset: 0; z-index: 2100; display: grid; place-items: center; padding: 20px; background: rgba(4,25,37,.7); }
.invoice-nf-popup > section { width: min(620px,95vw); max-height: 86vh; overflow: hidden; border-radius: 16px; background: #f5f8f9; box-shadow: 0 30px 90px rgba(0,20,32,.42); }
.invoice-nf-popup header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid #dbe5ea; background: #fff; }
.invoice-nf-popup header small { color: #13818b; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }.invoice-nf-popup h2 { margin: 4px 0 0; color: #173444; font-size: 20px; }
.invoice-nf-popup header button { width: 36px; height: 36px; border: 1px solid #d4e0e5; border-radius: 9px; background: #fff; color: #62737f; font-size: 21px; cursor: pointer; }
#invoiceNfPopupList { max-height: 65vh; overflow: auto; padding: 14px; }
#invoiceNfPopupList article { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 9px; padding: 13px 14px; border: 1px solid #dce7eb; border-radius: 11px; background: #fff; }
#invoiceNfPopupList article div small,#invoiceNfPopupList article div strong,#invoiceNfPopupList article div span { display: block; }
#invoiceNfPopupList article div small { color: #71838d; font-size: 8px; text-transform: uppercase; }#invoiceNfPopupList article div strong { margin-top: 3px; color: #173b49; font-size: 13px; }#invoiceNfPopupList article div span { margin-top: 3px; color: #61747d; font-size: 9px; }
#invoiceNfPopupList article a { flex: 0 0 auto; border-radius: 8px; padding: 9px 12px; background: #0d6972; color: #fff; font-size: 10px; font-weight: 800; text-decoration: none; }#invoiceNfPopupList article em { color: #89979e; font-size: 9px; font-style: normal; }
#invoiceNfPopupList > p { padding: 25px; color: #71838d; text-align: center; font-size: 11px; }
.invoice-modal-nfs { grid-column: 1/-1; overflow: hidden; border: 1px solid #cfe2e5; border-radius: 11px; background: #f4fafa; }
.invoice-modal-nfs > div:first-child { display: flex; align-items: center; justify-content: space-between; padding: 11px 13px; border-bottom: 1px solid #d8e7e9; }
.invoice-modal-nfs > div:first-child small { color: #147d81; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }.invoice-modal-nfs > div:first-child strong { color: #536a75; font-size: 10px; }
#invoiceModalNfList { display: grid; gap: 8px; max-height: 190px; overflow: auto; padding: 10px; }
#invoiceModalNfList article { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #dce7eb; border-radius: 9px; background: #fff; }
#invoiceModalNfList article span small,#invoiceModalNfList article span strong { display: block; }#invoiceModalNfList article span small { color: #71838d; font-size: 8px; }#invoiceModalNfList article span strong { margin-top: 3px; color: #173b49; font-size: 11px; }
#invoiceModalNfList article a { border-radius: 8px; padding: 9px 12px; background: #0d6972; color: #fff; font-size: 10px; font-weight: 800; text-decoration: none; }#invoiceModalNfList article em { color: #89979e; font-size: 9px; font-style: normal; }
.invoice-modal-nf-actions { display: flex!important; align-items: center; gap: 7px; }.invoice-modal-nf-actions button { border: 1px solid #efc8cc; border-radius: 8px; padding: 8px 10px; background: #fff1f2; color: #b4232d; font-size: 9px; font-weight: 800; cursor: pointer; }.invoice-modal-nf-actions button:hover { background: #ffe3e5; }.invoice-modal-nf-actions button:disabled { cursor: wait; opacity: .65; }
#invoiceModalNfList > p { margin: 0; padding: 12px; color: #71838d; text-align: center; font-size: 10px; }
@media(max-width:760px){#invoiceModalNfList article{grid-template-columns:1fr}}

.invoice-consultation-status {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 20px;
  background: #fff0e3;
  color: #b85f1c;
  font-size: 9px;
}

.invoice-consultation-status.ok { background: #e3f7ed; color: #148459; }
.invoice-consultation-status.critical { background: #fff0f0; color: #be4545; }

#refreshInvoices { display: none; }

@media(max-width:1200px) {
  .invoice-consultation-summary { grid-template-columns: repeat(3, 1fr); }
}

@media(max-width:760px) {
  .invoice-consultation-summary { grid-template-columns: repeat(2, 1fr); }
  .invoice-consultation-detail-grid { grid-template-columns: repeat(2, 1fr); }
}

@media(max-width:480px) {
  .invoice-consultation-summary,
  .invoice-consultation-detail-grid { grid-template-columns: 1fr; }
}
