
        .skynet-visitas-container {
            max-width: 1200px;
            margin: 20px auto;
            padding: 20px;
        }
        .skynet-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 2px solid #28a745;
        }
        .skynet-header h2 {
            color: #28a745;
            margin: 0;
        }
        .user-info {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .debug-badge {
            background: #ffc107;
            color: #856404;
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 0.8em;
            font-weight: bold;
        }
        .search-panel {
            background: white;
            border: 1px solid #e0e0e0;
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 25px;
        }
        .search-form {
            display: flex;
            gap: 15px;
            align-items: flex-end;
            flex-wrap: wrap;
        }
        .search-field {
            display: flex;
            flex-direction: column;
            gap: 5px;
            flex: 1;
            min-width: 300px;
        }
        .search-field label {
            font-weight: bold;
            color: #555;
            font-size: 0.9em;
        }
        .search-field input {
            padding: 8px 12px;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-family: monospace;
        }
        .field-hint {
            font-size: 0.8em;
            color: #666;
            font-style: italic;
        }
        .action-btn {
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-weight: bold;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            transition: all 0.3s;
            white-space: nowrap;
        }
        .action-btn.primary {
            background: #28a745;
            color: white;
        }
        .action-btn.secondary {
            background: #6c757d;
            color: white;
        }
        .action-btn.danger {
            background: #dc3545;
            color: white;
        }
        .action-btn.small {
            padding: 5px 10px;
            font-size: 0.8em;
        }
        .action-btn:hover {
            opacity: 0.9;
            transform: translateY(-1px);
        }
        .action-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }
        .results-container {
            background: white;
            border: 1px solid #e0e0e0;
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
        }
        .results-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid #eee;
        }
        .results-header h3 {
            margin: 0;
            color: #333;
        }
        .status-badge {
            padding: 6px 12px;
            border-radius: 15px;
            font-size: 0.8em;
            font-weight: bold;
        }
        .status-badge.pendiente {
            background: #fff3cd;
            color: #856404;
        }
        .status-badge.proceso {
            background: #d1ecf1;
            color: #0c5460;
        }
        .status-badge.finalizada {
            background: #d4edda;
            color: #155724;
        }
        .visita-info-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-bottom: 20px;
        }
        @media (max-width: 768px) {
            .visita-info-grid {
                grid-template-columns: 1fr;
            }
        }
        .info-section {
            background: #f8f9fa;
            border-radius: 8px;
            padding: 20px;
        }
        .info-section h4 {
            margin: 0 0 15px 0;
            color: #495057;
            border-bottom: 1px solid #dee2e6;
            padding-bottom: 8px;
        }
        .info-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 10px;
        }
        .info-item {
            display: flex;
            justify-content: space-between;
            padding: 8px 0;
            border-bottom: 1px solid #e9ecef;
        }
        .info-item:last-child {
            border-bottom: none;
        }
        .info-item.full-width {
            grid-column: 1 / -1;
        }
        .info-item label {
            font-weight: bold;
            color: #495057;
            min-width: 120px;
        }
        .info-item span {
            color: #6c757d;
            text-align: right;
            flex: 1;
        }
        .editable-section {
            grid-column: 1 / -1;
            background: #e8f5e8;
            border: 2px solid #28a745;
        }
        .editable-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 15px;
        }
        .form-group {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }
        .form-group label {
            font-weight: bold;
            color: #495057;
            font-size: 0.9em;
        }
        .editable-field {
            padding: 8px 12px;
            border: 1px solid #28a745;
            border-radius: 5px;
            background: white;
        }
        .editable-field:focus {
            outline: none;
            border-color: #1e7e34;
            box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.25);
        }
        .validation-info {
            margin-top: 15px;
            padding: 15px;
            background: white;
            border-radius: 5px;
            border-left: 4px solid #6c757d;
        }
        .validation-message {
            margin-bottom: 10px;
            padding: 8px;
            border-radius: 4px;
            font-size: 0.9em;
        }
        .validation-message.disponible {
            background: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }
        .validation-message.conflicto {
            background: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }
        .validation-message.advertencia {
            background: #fff3cd;
            color: #856404;
            border: 1px solid #ffeaa7;
        }
        .actions-panel {
            display: flex;
            gap: 10px;
            justify-content: center;
            padding-top: 20px;
            border-top: 1px solid #eee;
        }
        .skynet-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }
        .modal-content {
            background: white;
            border-radius: 10px;
            width: 90%;
            max-width: 500px;
            max-height: 90vh;
            overflow-y: auto;
        }
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px;
            border-bottom: 1px solid #eee;
        }
        .modal-header h3 {
            margin: 0;
            color: #333;
        }
        .close-modal {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: #666;
        }
        .modal-body {
            padding: 20px;
        }
        .delete-info {
            background: #f8f9fa;
            padding: 15px;
            border-radius: 5px;
            margin: 15px 0;
        }
        .warning-text {
            color: #dc3545;
            font-weight: bold;
            text-align: center;
        }
        .modal-footer {
            padding: 20px;
            border-top: 1px solid #eee;
            display: flex;
            justify-content: flex-end;
            gap: 10px;
        }
        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255,255,255,0.9);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 9999;
        }
        .loading-spinner {
            border: 4px solid #f3f3f3;
            border-top: 4px solid #28a745;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            animation: spin 1s linear infinite;
        }
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        .skynet-alert {
            padding: 15px;
            border-radius: 5px;
            margin: 15px 0;
            border-left: 4px solid;
        }
        .skynet-alert.error {
            background: #f8d7da;
            color: #721c24;
            border-color: #f5c6cb;
        }
        .skynet-alert.info {
            background: #d1ecf1;
            color: #0c5460;
            border-color: #bee5eb;
        }
        .skynet-alert.success {
            background: #d4edda;
            color: #155724;
            border-color: #c3e6cb;
        }
        .skynet-alert.warning {
            background: #fff3cd;
            color: #856404;
            border-color: #ffeaa7;
        }
        #mensajes-container {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 1001;
            max-width: 400px;
        }
        .mensaje-flotante {
            padding: 15px;
            margin-bottom: 10px;
            border-radius: 5px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            animation: slideIn 0.3s ease-out;
        }
        @keyframes slideIn {
            from { transform: translateX(100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }
        .conflicto-list {
            background: #f8f9fa;
            padding: 10px;
            border-radius: 5px;
            margin-top: 10px;
            font-size: 0.9em;
        }
        .conflicto-item {
            padding: 5px 0;
            border-bottom: 1px solid #dee2e6;
        }
        .conflicto-item:last-child {
            border-bottom: none;
        }