/*
╔══════════════════════════════════════════════════════════════╗
║  taskpane.css — Estilos del Add-in ICM de Claridad.co       ║
║  Programa: TABLAFÁCIL                                        ║
║  Desarrollador: Miguel Angel Guarin                          ║
╚══════════════════════════════════════════════════════════════╝
*/

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #f1f5f9;
    color: #1e293b;
    padding: 0;
    font-size: 13px;
    font-family: Arial, Helvetica, sans-serif;
}

#pantalla-login {
    padding: 24px 20px;
}

.logo-container {
    text-align: center;
    margin-bottom: 25px;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Fuerza el centrado perfecto */
}

.img-logo {
    width: 170px; /* Tamaño estricto y elegante para el panel de Excel */
    height: auto;
    margin-bottom: 12px;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.08)); /* Sombra muy sutil para darle profundidad */
}

.footer-app {
    text-align: center;
    margin-top: 25px;
}

.tagline-desarrollador {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.version-tag {
    font-size: 9px;
    color: #94a3b8;
}

.tagline {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.form-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.form-container label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 3px;
}

.form-container input {
    display: block;
    width: 100%;
    padding: 7px 10px;
    border: 1.5px solid #e2e8f0;
    border-radius: 7px;
    font-size: 12px;
    outline: none;
    background: #f8fafc;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

.error-msg {
    color: #dc2626;
    font-size: 11px;
    margin-top: 8px;
    min-height: 16px;
}

.header-app {
    background: #1a2f5a;
    color: white;
    padding: 8px 14px 6px 14px;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.header-titulo {
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 1.5px;
    color: white;
}

.header-modulos {
    display: flex;
    gap: 4px;
}

.modulo-btn {
    flex: 1;
    padding: 5px 2px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: rgba(255,255,255,0.1);
    color: #93c5fd;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.modulo-btn:hover:not([disabled]) {
    background: rgba(255,255,255,0.2);
    color: white;
}

.modulo-btn.activo {
    background: #2563eb;
    color: white;
    border-color: #3b82f6;
}

.modulo-btn[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-salir {
    width: auto;
    padding: 3px 10px;
    font-size: 10px;
    background: #dc2626;
    border-radius: 5px;
    border: none;
    color: white;
    cursor: pointer;
}

/* Footer de la pantalla principal */
.footer-principal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: white;
    border-top: 1px solid #e2e8f0;
    margin-top: 4px;
}

.footer-usuario {
    font-size: 10px;
    color: #94a3b8;
    font-style: italic;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 180px;
}

.btn-footer-clave {
    font-size: 10px;
    padding: 4px 10px;
    background: #f1f5f9;
    color: #374151;
    border: 1.5px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
}

.btn-footer-clave:hover {
    background: #e2e8f0;
}

.tabs-container {
    display: flex;
    background: white;
    border-bottom: 2px solid #e2e8f0;
    padding: 0 8px;
}

.tab-btn {
    flex: 1;
    padding: 10px 6px;
    background: transparent;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: #2563eb;
    background: #f8fafc;
}

.tab-btn.active {
    color: #2563eb;
    border-bottom: 3px solid #2563eb;
    background: transparent;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.seccion {
    background: white;
    margin: 8px;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.seccion-titulo {
    font-size: 11px;
    font-weight: 700;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1.5px solid #dbeafe;
}

.campo-grupo {
    margin-bottom: 8px;
}

.campo-grupo label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 3px;
}

.campo-grupo input,
.campo-grupo select {
    width: 100%;
    padding: 7px 10px;
    border: 1.5px solid #e2e8f0;
    border-radius: 7px;
    font-size: 12px;
    outline: none;
    background: #f8fafc;
    transition: border 0.2s;
    font-family: Arial, Helvetica, sans-serif;
}

.campo-grupo input:focus,
.campo-grupo select:focus {
    border-color: #2563eb;
    background: white;
}

.fila-doble {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.abono-fila {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e2e8f0;
}

button {
    cursor: pointer;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

#btn-login {
    width: 100%;
    padding: 11px;
    background: #2563eb;
    color: white;
    font-size: 13px;
    margin-top: 4px;
}
#btn-login:hover { background: #1d4ed8; }
#btn-login:disabled { background: #93c5fd; cursor: not-allowed; }

.btn-secundario {
    width: 100%;
    padding: 8px;
    background: #f1f5f9;
    color: #374151;
    font-size: 11px;
    border: 1.5px solid #e2e8f0;
}
.btn-secundario:hover { background: #e2e8f0; }

/* ACTUALIZADO: Contenedor y botones de acción (3 columnas) */
.botones-accion {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    padding: 8px;
}

.btn-calcular, .btn-guardar, .btn-borrar {
    padding: 10px 2px;
    font-size: 11px;
    color: white;
}

.btn-calcular {
    background: #16a34a;
}
.btn-calcular:hover { background: #15803d; }

.btn-guardar {
    background: #2563eb;
}
.btn-guardar:hover { background: #1d4ed8; }

.btn-borrar {
    background: #ef4444;
}
.btn-borrar:hover { background: #dc2626; }

.resultado-fila {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 12px;
}

.resultado-fila.total {
    font-weight: 700;
    font-size: 13px;
    border-bottom: none;
    margin-top: 4px;
}

.valor-resultado {
    color: #1a2f5a;
    font-weight: 600;
}

.destacado {
    color: #16a34a;
    font-size: 15px;
}

.btn-borrar-calculo {
    width: 100%;
    padding: 8px;
    background: #ea580c;
    color: white;
    font-size: 11px;
    border: none;
}
.btn-borrar-calculo:hover { background: #c2410c; }
/* ── PH Module Tabs ── */
.tab-btn-ph {
    flex: 1;
    padding: 10px 6px;
    background: transparent;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: -2px;
}
.tab-btn-ph:hover { color: #2563eb; background: #f8fafc; }
.tab-btn-ph.active {
    color: #2563eb;
    border-bottom: 3px solid #2563eb;
    background: transparent;
}
.tab-content-ph { display: none; }
.tab-content-ph.active { display: block; }

.tab-btn-lc {
    flex: 1; padding: 10px 6px; background: transparent; color: #64748b;
    font-size: 11px; font-weight: 600; border: none;
    border-bottom: 3px solid transparent; border-radius: 0;
    cursor: pointer; transition: all 0.2s; margin-bottom: -2px;
}
.tab-btn-lc:hover { color: #2563eb; background: #f8fafc; }
.tab-btn-lc.active { color: #2563eb; border-bottom: 3px solid #2563eb; }
.tab-content-lc { display: none; }
.tab-content-lc.active { display: block; }

.tab-btn-per {
    flex: 1; padding: 8px; border: none; background: #f1f5f9; color: #64748b;
    font-size: 11px; font-weight: 600; cursor: pointer; border-bottom: 3px solid transparent;
}
.tab-btn-per:hover { color: #2563eb; background: #f8fafc; }
.tab-btn-per.active { color: #2563eb; border-bottom: 3px solid #2563eb; }
.tab-content-per { display: none; }
.tab-content-per.active { display: block; }