body {
  font-family: Arial, Helvetica, sans-serif;
  background: #000000;
  margin: 0;
  padding: 0;
}

header {
  background: #1c3879;
  color: white;
  padding: 20px;
  text-align: center;
}

main {
  padding: 30px;
  max-width: 1500px;
  margin: auto;
}

section,
.section {
  background: rgb(0, 0, 0);
  padding: 20px;
  color: white;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .05);
}

h2 {
  margin-top: 0;
}

summary {
  cursor: pointer;
  font-weight: bold;
  padding: 10px;
  border-radius: 5px;
}

button {
  padding: 8px 14px;
  background: #1c3879;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  opacity: .9;
}

.btn_filter {
  margin: 10px 1px 0px 0px;
  background: #000000;
}


input {
  padding: 8px;
  width: 280px;
  margin-right: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: #1c3879;
}

td,
th {
  padding: 10px;
  border-bottom: 1px solid #e5e7eb;
}

#invoicesTable {
  text-align: center;
}

ul {
  list-style: none;
  padding: 0;
}

li {
  padding: 8px 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

.card {
  position: relative;
  background: #dedede;
  overflow: hidden;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.status_client {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: end;
  padding: 5px 10px !important;
  font-size: small;
  color: #ffff;
  width: 260px;
  height: 50px;
  transform: rotate(45deg);
  right: -120px;
  top: -10px;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.card h3 {
  margin: 0;
  color: #1c3879;
}

.card .plan {
  font-size: 14px;
  margin: 6px 0 12px;
  color: #555;
}

.card .info {
  font-size: 14px;
  color: black;
  margin-bottom: 10px;
}

.card .info span {
  display: block;
  margin-bottom: 4px;
}

.copy-id {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.copy-id small {
  color: #999;
}

.btn {
  background: #1c3879;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
}

.btn:hover {
  opacity: 0.9;
}



.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 100;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 25px;
  width: 360px;
  border-radius: 12px;
  z-index: 101;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.modal h3 {
  margin-top: 0;
}

.checkbox {
  display: flex;
  justify-content: flex-start;
}

.options {
  width: 100%;
  padding: 10px;
  border-radius: 7px;
  margin-bottom: 10px;
}

.modal div input {
  width: 94%;
  padding: 10px;
  border-radius: 7px;
  margin-bottom: 10px;

}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal-actions .primary {
  background: #1c3879;
  color: white;
}

.hidden {
  display: none;
}

.status {
  padding: 10px 15px;
  font-size: 15px;
  border-radius: 1em;
  cursor: none;
  transition: all 0.3s;
}

#header_card {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* .status_client {
  border-radius: 10rem;
  padding: 5px 10px !important;
  font-size: small;
  color: #ffff;
} */


.status-green {
  background: green;
  color: #ffff;
}

.status-yellow {
  color: #ffff;
  background: orange;
}

.status-gray {
  color: #ffff;
  background: rgb(122, 122, 122);
}

.status-red {
  color: #ffff;
  background: rgb(172, 0, 0);
}

.customer-detail {
  position: relative;
  overflow: hidden;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  max-width: 420px;
  font-family: system-ui, sans-serif;
}

.customer-detail h2 {
  margin-bottom: 16px;
}

.row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.label {
  font-weight: 600;
  color: #555;
}

.value {
  color: #222;
}

.status.processed {
  color: #2e7d32;
  font-weight: 600;
}

.actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.btn {
  padding: 8px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.btn.edit {
  background: #1976d2;
  color: white;
}

.btn.delete {
  background: #d32f2f;
  color: white;
}

.filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 15px;
  padding: 0%;
}

.filter_picklist {
  display: flex;
  flex-direction: column;
  height: fit-content;
  background: #1c3879;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;

  b {
    margin-bottom: 5px;
  }

  select {
    cursor: pointer;
    background: #1c3879;
    color: white;
    border: none;
    font-size: 12px;
  }
}


.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat {
  background: #182531;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
}

.red {
  background-color: red;
  color: #f0f2f5;
}

.green {
  background-color: rgb(0, 99, 13);
  color: #f0f2f5;
}

.btnsText {
  position: relative;
}

/* Tooltip / modal */
.btnsText::after {
  content: attr(data-text);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);

  background: #111;
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* Flechita */
.btnsText::before {
  content: '';
  position: absolute;
  bottom: 105%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #111;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* Hover */
.btnsText:hover::after,
.btnsText:hover::before {
  opacity: 1;
}
