/* RBE Utilities Shared Styles — November 2025 */

body {
  background: #f8fafc;
  font-family: "Inter", "Segoe UI", sans-serif;
  color: #222;
  margin: 0;
  padding: 20px;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 20px;
  margin-bottom: 24px;
}

h2, h3, h4 {
  margin-top: 0;
  color: #111;
}

table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid #e6e6e6;
}
th {
  background: #f2f4f8;
  font-weight: 600;
}

input[type=text],
input[type=number],
input[type=date],
select {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: .9rem;
  background: #fff;
}

.btn {
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: .9rem;
}
.btn:hover { background: #0069d9; }
.btn.secondary {
  background: #6c757d;
}
.btn.secondary:hover { background: #5a6268; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.55);
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(3px);
}
.modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  width: 90%;
  max-width: 800px;
  max-height: 85%;
  overflow-y: auto;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  animation: fadeIn .25s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

fieldset {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  background: #fafafa;
}
