/* ================================
   GENERAL STYLES
   ================================ */
body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px 0;
}

.navbar {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.container {
  max-width: 1600px;
}

/* ================================
   TABLE STYLES
   ================================ */
.table {
  font-size: 0.8rem;
  margin-bottom: 0;
}

thead th {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white !important;
  font-weight: 600;
  white-space: nowrap;
  padding: 10px 6px;
  border: none;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  position: sticky;
  top: 0;
  z-index: 1;
}

tbody td {
  padding: 8px 6px;
  vertical-align: middle;
  border-color: #e0e0e0;
  font-size: 0.8rem;
}

tbody tr:hover {
  background-color: #f8f9ff;
}

/* ================================
   CONCEPTO CELL STYLES
   ================================ */
.concepto-cell {
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  color: #667eea;
  text-decoration: underline dotted;
  font-weight: 500;
  display: inline-block;
}

.concepto-cell:hover {
  color: #764ba2;
}

/* ================================
   BADGE STYLES
   ================================ */
.badge-status {
  padding: 4px 8px;
  font-size: 0.7rem;
  font-weight: 600;
}

.badge-count {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
}

/* ================================
   TABLE RESPONSIVE
   ================================ */
.table-responsive {
  border-radius: 10px;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 600px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ================================
   CARD STYLES
   ================================ */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  margin-bottom: 30px;
  animation: slideIn 0.4s ease-out;
}

.card-header {
  background: white;
  border-bottom: 2px solid #f0f0f0;
  padding: 20px;
  border-radius: 12px 12px 0 0;
}

/* ================================
   MODAL STYLES
   ================================ */
.modal-content {
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px 12px 0 0;
  border: none;
  padding: 20px;
}

.modal-header .modal-title {
  font-weight: 700;
  letter-spacing: 0.5px;
  color: white;
  font-size: 1.2rem;
}

.btn-close-white {
  filter: brightness(0) invert(1);
}

.modal-body {
  padding: 16px;
}

/* ================================
   CONCEPTO TABLE STYLES
   ================================ */
.concepto-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin: 0;
}

.concepto-table thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.concepto-table thead th {
  padding: 10px;
  text-align: left;
  border: none;
}

.concepto-table tbody tr {
  border-bottom: 1px solid #e0e0e0;
  transition: background 0.2s ease;
}

.concepto-table tbody tr:hover {
  background: #f8f9ff;
}

.concepto-table tbody td {
  padding: 10px;
  color: #333;
  word-break: break-word;
}

.concepto-table tbody tr:last-child {
  border-bottom: none;
}

/* ================================
   BUTTON STYLES
   ================================ */
.btn-sm {
  padding: 3px 6px;
  font-size: 0.7rem;
}

/* ================================
   UPLOAD CARD STYLES
   ================================ */
.upload-card {
  border: 2px dashed #667eea;
  border-radius: 12px;
  background: white;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
}

.upload-card:hover {
  border-color: #764ba2;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
}

.upload-card.drag-over {
  background: #f8f9ff;
  border-color: #764ba2;
}

/* ================================
   SPACING STYLES
   ================================ */
.mt-section {
  margin-top: 40px;
}

/* ================================
   NAVBAR STYLES
   ================================ */
.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}

/* ================================
   ALERT STYLES
   ================================ */
.alert {
  border: none;
  border-radius: 10px;
  animation: slideIn 0.4s ease-out;
}

/* ================================
   TEXT UTILITIES
   ================================ */
.text-muted {
  font-size: 0.75rem;
}

/* ================================
   ANIMATIONS
   ================================ */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
