/* ======================
   ESTILOS GENERALES APP
   ====================== */

.app-body {
    margin:0;
    font-family: Arial, sans-serif;
    background:#f5f5f5;
}

/* Contenedor principal debajo del header */
.contenedor {
    padding:20px;
}

/* Tarjetas genéricas */
.card {
    background:#fff;
    padding:15px;
    border-radius:8px;
    margin-bottom:20px;
    box-shadow:0 0 5px rgba(0,0,0,.1);
}

/* Tablas estilo Excel */
table {
    border-collapse:collapse;
    width:100%;
    background:white;
}

th, td {
    border:1px solid #ddd;
    padding:6px;
    font-size:14px;
    text-align:left;
}

th {
    background:#ffc000;
    color:#000;
    font-weight:bold;
}

tr:nth-child(even) td {
    background:#fafafa;
}

/* Botón genérico */
.btn {
    display:inline-block;
    padding:8px 12px;
    background:#007bff;
    color:white;
    text-decoration:none;
    border-radius:6px;
    font-size:14px;
}

.btn:hover {
    background:#0056b3;
}

/* Tags de estatus (si los usas en dashboard) */
.tag {
    display:inline-block;
    padding:2px 6px;
    border-radius:3px;
    font-size:11px;
}

.tag-pendiente { background:#ffe1e1; color:#b30000; }
.tag-pagado   { background:#e1ffe6; color:#006600; }

/* ======================
   HEADER CON LOGO
   ====================== */

header {
    background:#222;
    color:#fff;
    padding:12px 20px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    box-shadow:0 2px 4px rgba(0,0,0,0.2);
}

.header-left {
    display:flex;
    align-items:center;
}

.header-logo {
    height:42px;
    width:auto;
}

.header-nav a {
    color:#fff;
    margin-left:22px;
    text-decoration:none;
    font-size:15px;
    font-weight:500;
}

.header-nav a:hover {
    text-decoration:underline;
}

/* ======================
   LOGIN PAGE
   ====================== */

.login-page {
    font-family: Arial, sans-serif;
    background:#e9ecef;
    margin:0;
    padding:0;
    display:flex;
    justify-content:center;
    align-items:center;
    height:100vh;
}

.login-box {
    width: 380px;
    background:#fff;
    padding:35px 30px;
    border-radius:12px;
    box-shadow:0 4px 15px rgba(0,0,0,.1);
}

.logo {
    width:180px;
    margin:0 auto;
    display:block;
}

.login-header {
    text-align:center;
    margin-bottom:20px;
}

.login-header h2 {
    margin-top:15px;
    margin-bottom:0;
    color:#333;
    font-weight:600;
}

.form-area {
    width:100%;
    max-width:260px;
    margin:0 auto;
    text-align:left;
}

.form-area label {
    display:block;
    margin-top:12px;
    font-size:14px;
    color:#444;
}

.form-area input[type="text"],
.form-area input[type="password"] {
    width:100%;
    padding:10px;
    margin-top:6px;
    border:1px solid #ccc;
    border-radius:6px;
    font-size:14px;
    box-sizing:border-box;
}

.form-area button {
    width:100%;
    padding:12px;
    margin-top:22px;
    border:none;
    border-radius:6px;
    background:#007bff;
    color:#fff;
    font-weight:bold;
    font-size:16px;
    cursor:pointer;
}

.form-area button:hover {
    background:#0056b3;
}

.error {
    margin-top:15px;
    color:#b30000;
    font-size:14px;
    text-align:center;
}

/* ======================
   FILTROS Y PAGINACIÓN
   ====================== */

.filtros {
    margin-bottom: 15px;
    padding: 10px 12px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.filtros form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 15px;
    align-items: flex-end;
}

.filtro-item {
    display: flex;
    flex-direction: column;
    min-width: 160px;
}

.filtro-item-label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
}

.filtro-item-control select,
.filtro-item-control input {
    padding: 6px 8px;
    font-size: 13px;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.filtro-item-boton {
    align-self: flex-end;
}

.filtro-item-boton .btn {
    padding: 6px 14px;
    font-size: 13px;
}
