/* Simple Table Component Styles */

.simple-table-wrapper {
  overflow-x: auto;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.simple-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
}

.simple-table th,
.simple-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
  vertical-align: middle;
}

.simple-table .row-header,
.simple-table .col-header {
  background-color: #f5f5f5;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

.simple-table .row-header {
  min-width: 80px;
  background-color: #e9ecef;
}

.simple-table .col-header {
  background-color: #e9ecef;
  padding: 10px 8px;
}

.simple-table .table-cell {
  padding: 2px;
  position: relative;
}

.simple-table .table-cell.error {
  background-color: red;
}

.simple-table .table-cell.warning {
  background-color: yellow;
}

.simple-table .table-cell.valid {
  background-color: green;
}

.simple-table .cell-input {
  width: 100%;
  border: none;
  padding: 6px 8px;
  font-size: 14px;
  font-family: inherit;
  background-color: #071c42;
  outline: none;
  min-height: 20px;
}

.simple-table .cell-input:focus {
  box-shadow: inset 0 0 0 2px #007bff;
  border-radius: 2px;
}

.simple-table .cell-input.readonly {
  color: #6c757d;
  cursor: not-allowed;
}

.simple-table .cell-input.error {
  color: #721c24;
  font-weight: 500;
}

.simple-table .cell-input.warning {
  color: #856404;
  font-weight: 500;
}

.simple-table .cell-input.valid {
  color: #333;
}

/* Tooltip Styles */
.tooltip.error-tooltip .tooltip-inner {
  background-color: #dc3545;
  color: white;
  border: none;
  font-size: 12px;
  max-width: 250px;
}

.tooltip.error-tooltip .tooltip-arrow {
  border-top-color: #dc3545;
}

.tooltip.warning-tooltip .tooltip-inner {
  background-color: #ffc107;
  color: #212529;
  border: none;
  font-size: 12px;
  max-width: 250px;
}

.tooltip.warning-tooltip .tooltip-arrow {
  border-top-color: #ffc107;
}

.tooltip.info-tooltip .tooltip-inner {
  background-color: #17a2b8;
  color: white;
  border: none;
  font-size: 12px;
  max-width: 250px;
}

.tooltip.info-tooltip .tooltip-arrow {
  border-top-color: #17a2b8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .simple-table {
    font-size: 12px;
  }
  
  .simple-table .cell-input {
    padding: 4px 6px;
    font-size: 12px;
  }
  
  .simple-table th,
  .simple-table td {
    padding: 6px;
  }
}

/* Loading State */
.simple-table-wrapper.loading {
  opacity: 0.6;
  pointer-events: none;
}

.simple-table-wrapper.loading::after {
  content: "Loading...";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 600;
}

/* Export Button Styling */
.table-controls {
  margin: 10px 0;
  text-align: right;
}

.table-controls .btn {
  margin-left: 5px;
}
