.table-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
}

.loading-container,
.error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  gap: 8px;
  color: #666;
}

.error-container mat-icon {
  font-size: 40px;
  color: #d32f2f;
}

.empty-message {
  text-align: center;
  margin-top: 16px;
  color: #999;
}

.full-width-table {
  width: 100%;
  max-width: 900px;
}
.mat-mdc-select-panel-above {
  background-color: #ffffff;
}

/* === Base Button Styles === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 0.875rem; /* text-sm */
  border-radius: 0.375rem; /* rounded-md */
  padding: 0.5rem 1rem; /* px-4 py-2 */
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border: none;
}

/* === Variants === */
.btn-default {
  background-color: #f9f7f7; /* gray-500 */
  color: #333;
  border: 1px solid #858484;
}
.btn-default:hover {
  background-color: #ccc; /* gray-600 */
}

.btn-primary {
  background-color: #3b82f6; /* Tailwind blue-500 */
  color: white;
}
.btn-primary:hover {
  background-color: #2563eb; /* blue-600 */
}

.btn-secondary {
  background-color: #6b7280; /* gray-500 */
  color: white;
}
.btn-secondary:hover {
  background-color: #4b5563; /* gray-600 */
}

.btn-success {
  background-color: #10b981; /* emerald-500 */
  color: white;
}
.btn-success:hover {
  background-color: #059669; /* emerald-600 */
}

.btn-warning {
  background-color: #bb862f; /* red-500 */
  color: white;
}
.btn-warning:hover {
  background-color: #9c6404; /* red-600 */
}

.btn-danger {
  background-color: #ef4444; /* red-500 */
  color: white;
}
.btn-danger:hover {
  background-color: #dc2626; /* red-600 */
}
/* === Optional: Disabled state === */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.error-content {
  color: oklch(50.5% 0.213 27.518);
}

.fixed-bottom-btn {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.mat-header-row {
  z-index: 10; /* default sticky headers */
}
thead,
.z-1000,
.mat-sort-header,
.mat-sort-header-content,
.mat-sort-header-container {
  z-index: 45 !important;
}

.z-9999 {
  z-index: 9999;
}

.cdk-overlay-container {
  z-index: 99999 !important;
}

html {
  --md-sys-color-primary: #1a73e8;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-surface: #ffffff;
  --md-sys-color-on-surface: #000000;
  --md-sys-color-outline: #d0d0d0;
  --mat-select-panel-background-color: #ffffff;
}

/* dropdown sa fie vizibil peste modal */
.cdk-overlay-container,
.cdk-overlay-pane {
  z-index: 999999 !important;
}

/* mat-select panel fix vizibil */
.mat-mdc-select-panel {
  background: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  border: 1px solid var(--md-sys-color-outline);
}

/* option stil fix */
.mat-mdc-option {
  color: var(--md-sys-color-on-surface) !important;
}

.mdc-checkbox__native-control:enabled:checked ~ .mdc-checkbox__background,
.mdc-checkbox__native-control:enabled:indeterminate
  ~ .mdc-checkbox__background {
  border-color: #1d7480 !important;
  background-color: #1d7480 !important;
}

.mdc-checkbox__checkmark-path {
  stroke: white !important;
}

/* Outer circle when selected (border) */
.mat-mdc-radio-button
  .mdc-radio__native-control:enabled:checked
  + .mdc-radio__background
  > .mdc-radio__outer-circle {
  border-color: #1d7480 !important;
}

/* Inner circle when selected (fill) */
.mat-mdc-radio-button
  .mdc-radio__native-control:enabled:checked
  + .mdc-radio__background
  > .mdc-radio__inner-circle {
  background-color: #1d7480 !important;
}

.bg-tab {
  background-color: #d2ded3;
}
