/* Cebelca Invoices - User styles */

.cebelca-invoices-page h1 {
  font-size: 22px;
  margin-bottom: 20px;
}

.ceb-inv-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.ceb-inv-table thead th {
  background: #f8f9fa;
  padding: 12px 15px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #495057;
  border-bottom: 2px solid #dee2e6;
}

.ceb-inv-table tbody td {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  vertical-align: middle;
}

.ceb-inv-table tbody tr:hover td {
  background: #f8f9fa;
}

.ceb-inv-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
}

.ceb-status-draft {
  background: #e2e3e5;
  color: #383d41;
}

.ceb-status-issued {
  background: #cce5ff;
  color: #004085;
}

.ceb-status-fiscal {
  background: #d4edda;
  color: #155724;
}

.ceb-status-sent {
  background: #d1ecf1;
  color: #0c5460;
}

.ceb-status-error {
  background: #f8d7da;
  color: #721c24;
}

.ceb-inv-download {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: #dc3545;
  color: #fff !important;
  border-radius: 3px;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}

.ceb-inv-download:hover {
  background: #c82333;
}

.ceb-inv-download i {
  font-size: 14px;
}

.ceb-inv-na {
  color: #adb5bd;
}

.ceb-inv-empty {
  text-align: center;
  padding: 40px 20px;
  color: #6c757d;
}

.ceb-inv-empty p {
  font-size: 15px;
}


/* Responsive */
@media (max-width: 768px) {
  .ceb-inv-table thead {
    display: none;
  }

  .ceb-inv-table tbody tr {
    display: block;
    margin-bottom: 15px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px;
  }

  .ceb-inv-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 5px;
    border-bottom: 1px solid #f1f1f1;
  }

  .ceb-inv-table tbody td:last-child {
    border-bottom: none;
  }

  .ceb-inv-table tbody td:before {
    content: attr(data-label);
    font-weight: 600;
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
  }
}
