* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  background-color: #f5f0e8;
  color: #4e3b2a;
}

.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  background: #ffffff;
  border-radius: 18px;
  padding: 24px;
  border: 1px solid #d9c7a8;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

.card-title{
  font-weight: 750;
  font-size: 16px;
  color: #4e3b2a;
  padding: 6px 0 12px;
  margin-bottom: 12px;
  /*border-bottom: 1px solid #f0e4c9; /* misma línea suave de tu tabla */
  text-align: left;
  text-decoration: dotted;
}

input, select, button {
  font-size: 14px;
}

input, select {
  width: 100%;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #d9c7a8;
  outline: none;
}

input:focus, select:focus {
  border-color: #c5a77d;
  box-shadow: 0 0 0 1px #c5a77d55;
}

button {
  border-radius: 6px;
  border: 1px solid #b49665;
  background: #c5a77d;
  color: white;
  padding: 8px 14px;
  cursor: pointer;
}

button.secondary {
  background: transparent;
  color: #4e3b2a;
  border-color: #d9c7a8;
}

button:hover {
  background: #b49665;
}

button.secondary:hover {
  background: #f0e0c4;
}

.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 230px;
  background: #fffaf1;
  border-right: 1px solid #d9c7a8;
  padding: 16px;
}

.sidebar h1 {
  font-size: 18px;
  margin: 0 0 18px;
}

.sidebar a {
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 4px;
  text-decoration: none;
  color: inherit;
  font-size: 14px;
}

.sidebar a.active,
.sidebar a:hover {
  background: #e2d1b0;
  font-weight: 600;
}

.content {
  flex: 1;
  padding: 16px 20px;
}

table {
  border-collapse: collapse;
  width: 100%;
}



th, td {
  border-bottom: 1px solid #f0e4c9;
  padding: 6px 8px;
  font-size: 13px;
  text-align: left;
}

th {
  border-bottom-color: #e3d4b4;
  font-weight: 600;
}

.actions {
  display: inline-flex;
  gap: 4px;
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid #d9c7a8;
  background: #fffaf1;
}

.tag.green {
  border-color: #6cbf7a;
  background: #e7f6ea;
  color: #276534;
}

.tag.red {
  border-color: #e28a8a;
  background: #fdeaea;
  color: #8a3030;
}

.flex {
  display: flex;
}

.justify-between {
  justify-content: space-between;
}

.items-center {
  align-items: center;
}

.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }

.text-right { text-align: right; }
.text-left { text-align: left; }
.text-center { text-align: center; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal {
  background: #ffffff;
  border-radius: 14px;
  padding: 18px 20px;
  border: 1px solid #d9c7a8;
  width: min(700px, 96vw);
  max-height: 90vh;
  overflow: auto;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

label {
  font-size: 13px;
  display: block;
  margin-bottom: 2px;
}

.multi-select {
  position: relative;
  font-size: 13px;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  background-color: #fff;
}

.multi-select-toggle {
  padding: 8px;
}

.multi-select-options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-top: none;
  z-index: 10;
  padding: 6px 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.multi-select.open .multi-select-options {
  display: block;
}

.multi-select-options label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
}
