@charset "UTF-8";
/* ===== Estilos generales ===== */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f9f9f9;
}

/* ===== Header ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #e094b2;
    padding: 10px 20px;
    color: #fff;
}

.logo-container {
    flex: 1;
    display: flex;
    justify-content: center;
}

.logo {
    height: 50px;
    width: auto;
}

/* Botón Regresar*/
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px; 
    padding: 8px 14px;
    background-color: #c2185b; 
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.2s;
    position: relative;
    overflow: hidden;
}

.btn-back::before {
    content: "⟵"; /* icono de flecha */
    display: inline-block;
    font-size: 16px;
    transition: transform 0.2s;
}

/* Hover efecto */
.btn-back:hover {
    background-color: #a0174c;
    transform: translateX(-2px);
}

.btn-back:hover::before {
    transform: translateX(-2px);
}

/* Opcional: efecto pulsante en click */
.btn-back:active {
    transform: scale(0.97);
}

.btn-logout {
    text-decoration: none;
    background: #E6007E;
    color: #fff;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.3s;
    font-size: 14px;
}

.btn-logout:hover {
    background: #ad1457;
}

/* ===== Contenedor principal ===== */
.main-container {
    width: 95%;
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 10px;
}

.title {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #d1006c;
}

/* ===== Panel de búsqueda ===== */
.search-panel {
    border: 1px solid #ccc;
    padding: 15px;
    margin: 20px 0;
    background: #fce4ec;
    border-radius: 6px;
}

.search-row,
.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.search-panel input[type="text"],
.search-panel select {
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    flex: 1;
    min-width: 150px;
}

/* ===== Botones principales ===== */
.action-buttons {
    text-align: right;
    margin-bottom: 15px;
}

.btn-action {
    background: #d81b60;
    color: #fff;
    padding: 8px 15px;
    margin-left: 10px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
}

.btn-action:hover {
    background: #ad1457;
}
    /* BOTÓN CANCELAR */
.btn-cancel {
    background-color: #777272ff; 
    color: #fff;
    padding: 8px 15px;
    margin-left: 10px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
}

.btn-cancel:hover {
    background-color: #3a3939ff; 
}

/* ESTILOS GLOBALES DE TABLAS (para TODAS las vistas) */
.table-container {
    max-height: 500px;
    overflow-y: auto;
    overflow-x: auto;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 10px;
    margin: 0 auto;
    background: #fff;
    width: 95%;
    padding: 0;
}

/* Tabla base */
.main-container { 
    max-width: 1200px; 
    margin: 20px auto; 
    padding: 0 15px; 
}

.styled-table thead tr { 
    background-color: #c2185b; 
    color: #fff; 
    text-align: left; 
}

.styled-table {
    border-collapse: collapse;
    width: 100%;
    min-width: 1100px;
    margin: 8px 10px 10px 10px;
}

/* Encabezado fijo */
.styled-table thead th {
    position: sticky;
    top: 0;
    background: #e91e63;
    color: white;
    z-index: 2;
}

/* Bordes y celdas */
.styled-table th,
.styled-table td {
    border: 1px solid #dddddd9d;
    padding: 10px;
    text-align: left;
}

/* Filas alternadas */
.styled-table tbody tr:nth-child(even) {
    background-color: #fce4ec;
}

/* Hover */
.styled-table tbody tr:hover {
    background-color: #f8bbd0;
}

/* Columnas con salto de línea */
.styled-table th.proveedor,
.styled-table td.proveedor,
.styled-table th.descripcion,
.styled-table td.descripcion {
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Acciones */
.acciones-td {
    text-align: center;
}

.btn-icon {
    margin: 0 4px;
    text-decoration: none;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-icon:hover {
    transform: scale(1.2);
}

/* Formularios */
.form-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 500px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.form-container label {
    font-weight: bold;
}

.form-container input {
    padding: 8px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.btn-back {
    background-color: #666;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
}
.pagination-container {
    margin: 25px auto;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.page-btn {
    background: #d63384;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    transition: 0.2s ease-in-out;
}

.page-btn:disabled {
    background: #6e6868ff;
    cursor: not-allowed;
}

.page-btn:hover:not(:disabled) {
    background: #E6007E;
}

.page-info {
    font-size: 15px;
    font-weight: bold;
    color: #333;
}
/* ============================
   Contenedor para inputs de contraseña
============================= */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .toggle-password {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    cursor: pointer;
    opacity: 0.6;
    transition: 0.2s;
}

.password-input-wrapper .toggle-password:hover {
    opacity: 1;
}

