.maintenance-module-tabbar {
  margin: -0.25rem 0 0.75rem 0;
  padding: 0;
  background: #f8f9fa;
  gap: 0;
  border-radius: 4px 4px 0 0;
}

.maintenance-module-tab {
  flex: 0 1 auto;
  border: none;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #6c757d;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.maintenance-module-tab:hover {
  color: #495057;
  background: rgba(0, 0, 0, 0.03);
}

.maintenance-module-tab.is-active {
  color: #1f6fb2;
  border-bottom-color: #1f6fb2;
  background: #fff;
}

.maintenance-module-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  margin: 0 0.75rem 0 auto;
  padding: 0.35rem 0;
}

.maintenance-module-actions .btn-primary {
  white-space: nowrap;
}

.maintenance-module-panel {
  min-width: 0;
}

@media (max-width: 991.98px) {
  .maintenance-module-tabbar {
    flex-direction: column;
    align-items: stretch !important;
  }

  .maintenance-module-actions {
    width: 100%;
    margin: 0;
    padding: 0.5rem 0.75rem;
    justify-content: flex-start;
    border-top: 1px solid #e2e8f0;
  }
}
