/* Login */
#login-view {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* Loading overlay */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Card Art. 9 - Software Garante */
#compliance-card {
    border-left: 4px solid #0d6efd;
}

#compliance-card .card-header {
    background: #0d6efd;
    color: white;
    font-weight: 600;
}

/* Card empresa */
#company-card {
    border-left: 4px solid #198754;
}

/* Tabla */
th.sortable {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

th.sortable:hover {
    background: #343a46 !important;
}

th.sortable::after {
    content: ' \25B4\25BE';
    opacity: 0.3;
    font-size: 0.75em;
}

th.sortable.sort-asc::after {
    content: ' \25B4';
    opacity: 1;
}

th.sortable.sort-desc::after {
    content: ' \25BE';
    opacity: 1;
}

#invoice-table tbody tr {
    cursor: pointer;
}

#invoice-table td {
    vertical-align: middle;
    white-space: nowrap;
    font-size: 0.875rem;
}

/* XML display */
.xml-display {
    max-height: 500px;
    overflow-y: auto;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 1rem;
    font-size: 0.8rem;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Environment badges */
.env-prod {
    background: #198754 !important;
    font-size: 0.85rem;
}

.env-test {
    background: #fd7e14 !important;
    font-size: 0.85rem;
}

/* Summary table in modal */
#summary-content table td:first-child {
    font-weight: 600;
    width: 180px;
    white-space: nowrap;
}

/* QR canvas */
#qr-canvas {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px;
    background: white;
}
