body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f8f8;
}
.sidebar {
    position: fixed;
    width: 240px;
    height: 100vh;
    background-color: #550000;
    color: white;
    padding: 20px;
    box-sizing: border-box;
}
.sidebar img {
    width: 100%;
    max-width: 200px;
    margin-bottom: 20px;
}
.sidebar ul {
    list-style: none;
    padding: 0;
}
.sidebar ul li {
    margin: 15px 0;
}
.sidebar ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}
.sidebar ul li a:hover {
    text-decoration: underline;
}
.main-content {
    margin-left: 240px;
    padding: 20px;
}
iframe {
    width: 100%;
    height: calc(100vh - 40px);
    border: none;
}
form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}
form input, form textarea, form select {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
}
form button {
    background-color: #8b0000;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}
form button:hover {
    background-color: #a00000;
}
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}
table th, table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
}
table th {
    background-color: #eee;
}
table img {
    border-radius: 4px;
}

/* Estilos específicos para Revendedoras */
.filters {
    margin: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.filters select,
.filters input {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

/* Botones de acciones en tabla de Revendedoras */
.btn {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
}

.btn-sm {
  font-size: 13px;
  padding: 4px 10px;
}

.btn-success {
  background-color: #28a745;
  color: white;
}
.btn-success:hover {
  background-color: #218838;
}

.btn-danger {
  background-color: #dc3545;
  color: white;
}
.btn-danger:hover {
  background-color: #c82333;
}

/* Estado visual en tabla de Revendedoras */
.estado {
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: capitalize;
}
.estado.pendiente {
  background-color: #fff3cd;
  color: #856404;
}
.estado.aprobada {
  background-color: #d4edda;
  color: #155724;
}
.estado.rechazada {
  background-color: #f8d7da;
  color: #721c24;
}
